News for hackers. Stuff that matters.
Re:Jpegli: A New JPEG Coding Library by nigeltao on Wednesday April 03, 2024 @06:52PM (#39924365)
Encoding is definitely in Wuffs' long term objectives (it's issue #2 and literally in its doc/roadmap.md file). It's just that decoding has been a higher priority. It's also a simpler problem. There's often only one valid decoding for any given input.

Decoding takes a compressed image file as input, which have complicated formats. Roughly speaking, encoding just takes a width x height x 4 pixel buffer, with very regular structure. It's much easier to hide something malicious in a complicated format.

Higher priority means that, when deciding whether to work on a Wuffs PNG encoder or a Wuffs JPEG decoder next, when neither existed at the time, I chose to have more decoders.

(I work at Google, and am the Wuffs author, but have nothing to do with Jpegli. Google is indeed a big company.)

Re:Jpegli: A New JPEG Coding Library by littlestymaar on Thursday April 04, 2024 @01:51AM (#39926986)
Thanks for the answer!