/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Faking a JPEG
(www.ty-penguin.org.uk)
291 points
todsacerdoti
| 1 comments |
11 Jul 25 22:57 UTC
|
HN request time: 0.21s
|
source
1.
superjan
◴[
12 Jul 25 06:12 UTC
]
No.
44539759
[source]
▶
>>44537631 (OP)
#
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).
ID:
GO
↑