Quite ironic that the chart (PNG by the way) does not even render in Firefox.
What ? It does for me on Linux with Firefox 68. PNG are handled by Firefox since Firefox 1 or 2, over ten years ago.
JPG vs. PNG vs. GIF vs. SVG
41–50 of 77 posts
Re: JPG vs. PNG vs. GIF vs. SVG
#42This chart offers some dubious suggestions, even ignoring the "Burn it with fire" bit. Unfortunately, it doesn't explain any of its reasoning. A photograph that's not real big is probably still better suited for JPG. And there's no reason to use GIF for any still image - PNG will be superior in all situations. A moving image may be better off as an MP4 for modern browsers in terms of file size and quality, but there'…
Also apng. Time to retire gifs already.
Re: JPG vs. PNG vs. GIF vs. SVG
#43Re: JPG vs. PNG vs. GIF vs. SVG
#44Is it a photo? Yes: JPG No: SVG If you're uploading bitmap diagrams logos etc. they should be vector.
So which tool should I use to convert my screenshot to SVG?
It might be apropriate in some cases at least.
Re: JPG vs. PNG vs. GIF vs. SVG
#45Re: JPG vs. PNG vs. GIF vs. SVG
#46Re: JPG vs. PNG vs. GIF vs. SVG
#47Why use a chart? It's what, four questions? Is it a vector image? -> Use .svg Is it an illustration (bitmap) with transparency (i.e. a cutout of a man) -> Use .png Is it animated? -> Use .mp4 and fallback to .gif Is it a photo? -> Use .jpg and compress as much as possible
mp4 with fallback to gif doesn't make much sense. More appropriate would be webm, or in the future AV1 with a fallback of h264 mp4 for video or high quality animated images. Using gif for small animations is fine, especially if you have transparency.
if an mp4 doesn't play, a webm probably won't play either.
you can do mp4 -> webm -> gif if needed, but that's extra encoding that probably isn't needed.
Re: JPG vs. PNG vs. GIF vs. SVG
#48Wish i could read this. Ugh, Medium is the worst.
Re: JPG vs. PNG vs. GIF vs. SVG
#49Why use a chart? It's what, four questions? Is it a vector image? -> Use .svg Is it an illustration (bitmap) with transparency (i.e. a cutout of a man) -> Use .png Is it animated? -> Use .mp4 and fallback to .gif Is it a photo? -> Use .jpg and compress as much as possible
Re: JPG vs. PNG vs. GIF vs. SVG
#50Earlier quoted context omitted.
One of the problems with PNG is that many applications default to full-color-with-alpha-channel as the only save method, even though PNGs can do paletted images just as well as GIF and end up basically the same size. So people look at their PNG files and wonder why they are so big compared to the old GIFs because their application sucks. Edit: I just tried it with your example: % giftopnm favicon.gif | pnmtopng > fav…
Don't forget to run oxipng or optipng, as well; pnmtopng doesn't produce optimal PNGs. (In this case, it just saves 3 bytes, but it can make a huge difference sometimes.)