css - How to convert an image to retina display? -


i have 40px 20px image 72 pixels / inch.

i create retina display version.

what should do? double size? change resolution?

and in format should save it? png? jpg? ...

i using image on web site ...

in image editor, double size of image 80px 40px.

in markup set width 40 , height 20.

<img src="example.png" width="40" height="20" /> 

you should save png if need transparency or image line art. save photographs jpg.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -