Re:Show HN: Jpeg.io – Convert any major image format into a ...
by Kiro on Wednesday September 28, 2016 @08:04AM
(#12597006)
Cool. When would you want to use JPEG over PNG though? I don't know much about these things (just using PNG/SVG everywhere).
[ Parent
| on HN ]
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by colmvp on Wednesday September 28, 2016 @08:32AM
(#12597130)
My rule of thumb: If the image has few colours, PNG is typically better as you can retain maximum quality with little degradation compared to JPG (e.g. a logo, an illustration). If the image is complex with a lot of colours/shades (e.g. a photograph, an illustration with dozens of colours), JPEG is typically better.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by barrkel on Wednesday September 28, 2016 @08:53AM
(#12597242)
Any time it's a photographic image (rather than a drawing, diagram or rasterised vector image).
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by jerrycruncher on Wednesday September 28, 2016 @01:43PM
(#12599666)
This. Here's a quick guide:
JPG - Use for photographic images only.
GIF/PNG-8 - Use for line-art, logos, etc.
PNG-24 - This is a a lossless format/TIFF replacement and generally shouldn't be used for production sites.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by tedmiston on Wednesday September 28, 2016 @02:32PM
(#12600083)
> PNG-24 - ... generally shouldn't be used for production sites.
But it is sometimes of course, particularly when the designer does not want the PNG restricted to 256 colors. For example, suppose that your logo is a single lowercase letter with an overlaid multicolor gradient rainbow, the banding in the transitions becomes super pronounced in PNG-8.
Beyond that, SVG can replace a lot of what PNG has been used for on the web for the past couple decades.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by GordonS on Wednesday September 28, 2016 @08:13AM
(#12597048)
Some images get better compression with JPEG than PNG - photographs in particular.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by izacus on Wednesday September 28, 2016 @08:12AM
(#12597042)
Pretty much everywhere where you're not forced to use PNG. JPEG is significantly smaller and on most devices faster to decode.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by jimboj on Wednesday September 28, 2016 @09:11AM
(#12597321)
It totally depends on the situation, JPEG isn't always smaller, and it's lossy unlike PNG. Flat colour images like logos will be smaller as PNG, and look better too. PNGs also support transparency.
Re:Show HN: Jpeg.io – Convert any major image format into a ...
by izacus on Wednesday September 28, 2016 @09:50AM
(#12597576)
Yes, this is kinda what I mean with "where you're not forced to use PNG". If you need transparency or you have tiny flat colored icons, PNG is better. For any kind of complex images JPEG tends to be even 10x or so smaller.