2 ms·
I have some guesses about how this works. JAR is basically ZIP, which puts the directory at the end of the file. I guess that GIF (or at least most GIF decoders
by wmf 18y ago
I have some guesses about how this works. JAR is basically ZIP, which puts the directory at the end of the file. I guess that GIF (or at least most GIF decoders) has a header at the beginning of the file and will ignore any garbage at the end of a file. Sites can filter this out without recompressing by canonicalizing images; i.e. removing any data that is not necessary for properly decoding the image.
(The OS X spell checker suggests "cannibalizing" instead of "canonicalizing". I guess you could do that, too.)