Re:FLIF – Free Lossless Image Format
by tambourine_man on Monday March 07, 2016 @09:50AM
(#11239161)
Kind of. Have you tried running a PNG compressor on a JPEG file?
It is smaler than a straight to PNG file but nowhere near the size of the original JPG.
Re:FLIF – Free Lossless Image Format
by Houshalter on Monday March 07, 2016 @01:08PM
(#11240376)
Well of course, JPEG artifacts aren't necessarily going to be easier for png to compress. You need to make modifications designed for png's algorithm. There are some tools that do this:
https://pngmini.com/lossypng.html
The resulting png's are much smaller. Though not necessarily as small as JPEG, it's in the same ballpark.
Likewise you can turn any lossless compressor into a lossy one, by modifying the pixels that are the hardest to compress. E.g. if there is a random red pixel in a group of blue pixels, you can make it blue, and save up to 3 bytes. Or you can discard color information that humans aren't very sensitive too anyway, like JPEG does. All lossless means is that the compression isn't required by the format itself.