←back to thread

Faking a JPEG

(www.ty-penguin.org.uk)
291 points todsacerdoti | 1 comments | | HN request time: 0.21s | source
1. superjan ◴[] No.44539759[source]
There is a particular pattern (block/tag marker) that is illegal the compressed JPEG stream. If I recall correctly you should insert a 0x00 after a 0xFF byte in the output to avoid it. If there is interest I can followup later (not today).