What is the best image format for a web page and for a desktop application? I like png format. Is it good for both?
|
|
|||
|
|
closed as not constructive by Ben Brocka♦ May 9 '12 at 0:20
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
Well it depends what the image shows. For photos JPG is a good choice. While it's a lossy data compression, it can create quite compress photo-like picture with a very good loss/compression ratio. So you get a high compression without loosing to much information. Of course it depends on the quality factor. For more abstract pictures like graphics, clip-arts, UI-elements PNG is a better choice. It's a loss-less compression, with is very good at compressing more 'abstract' pictures without losing any information. |
|||||||||
|
|
It think PNG is good enough to work with. but there are some problems in rendering PNG files on different platforms. It is better to use JPEG if you don't need transparency. but if you need transparency, PNG is the best choice. |
|||
|
|
|
png is great but the files can be larger than jpg for photos so you may want to use jpgs for those. Just remember for webapps that ie6 doesn't support png transparency. |
|||
|
|
|
Agreed with accepted answer, but it's worth noting that PNG may be a bad choice for web since IE6 does not support PNG out of the box. There may have been an update, but this doesn't change much -- for example, my uncle (a VP at a software company...) refuses to install updates. Yeah, IE6 ruins everything fun. GIF, despite its age, has better support, and is also smaller, so is a good choice for anything that will fit in 256 colors. |
|||||
|
|
You didn't give any indication of what type of pictures these are - photographs? drawings? The best format is not universal. For a webpage, vector graphics will look great regardless of how zoomed in your user is, or what their screen resolution is. SVG is a pretty widely used vector graphics format. I don't know how well it's supported across web-browsers though. |
|||||||||
|