3 ms·
I did submit it, but I don't think anyone saw it: https://news.ycombinator.com/item?id=13729920 https://news.ycombinator.com/item?id=13729920. I was trying to f
by nneonneo 10y ago
I did submit it, but I don't think anyone saw it: https://news.ycombinator.com/item?id=13729920 https://news.ycombinator.com/item?id=13729920. I was trying to finish it in time to catch daytime folks but work got in the way :)
Comments are limited to 65536 bytes, and the JPEG spec doesn't offer any way to break an image stream up except for progressive mode or restart intervals (otherwise, the image stream must be a single intact entity). The trouble is that it's probably not _technically_ legal to stick comments before restart interval markers (putting comments _after_ the markers just breaks all the readers since presumably they are expecting image data). So, GhostScript's JPEG reader gets confused when it fails to see a restart marker immediately following an image data chunk, and aborts decoding.