4 ms·
I'd love to hear why they think JPEG is a worse format.
by stagger87 6y ago
I'd love to hear why they think JPEG is a worse format.
- user-the-name 6y agoNot worse, that is the point. It is merely a bad format, which is better than what PSD is. As for why JPEG is bad: Did you know there is no one defined way to store the width and height of a JPEG image?
- stagger87 6y agoThank you, I totally misread that!
- userbinator 6y agoAs someone who has written a JPEG decoder, I am compelled to say that you are wrong, and the width and height are stored in the SOF marker segment. http://vip.sugovica.hu/Sardi/kepnezo/JPEG%20File%20Layout%20and%20Format.htm http://vip.sugovica.hu/Sardi/kepnezo/JPEG%20File%20Layout%20...
- user-the-name 6y agoI might be misremembering, but at least, SOF does not tell you what is actually in the channels of the image, so it is not enough to figure out how to actually display an image.
- just_for_you 6y agoTo my knowledge, I see most JPEG images encode their height in an "APP1" EXIF segment, and in their SOF1 segment (which is basically just a basic-info segment for the core JPEG bitstream). It's also possible to store the size in an APP1 XMP section, but that's mostly non-essential metadata for interchange purposes, and I usually don't see the size duplicated there for JPEGs anyway (PNG does though, if it has an XMP chunk). It's possible that some of the other officially-defined segments (see https://exiftool.org/TagNames/JPEG.html https://exiftool.org/TagNames/JPEG.html) might also contain duplicate info, but then that'd be specific to the app that uses it, not for general-purpose use. Storing the size in easily-parseable EXIF metadata and then once again in the JPEG bitstream seems pretty reasonable to me. Not to mention if you run a metadata/EXIF stripper on a JPEG file, then you remove all duplicate info and the only remaining image-dimensions will be stored in the JPEG bitstream anyway.
- eyesee 6y agoWell for one thing it's not a file format. For that there's JFIF and EXIF.
- stagger87 6y agoI actually thought about that when I typed my reply, but decided the meaning of my question would still be clear the way it was phrased. Despite that, my question is more or less irrelevant since I misunderstood the author.