News for hackers. Stuff that matters.
Re:PSD is not my favourite file format (2009) by userbinator on Thursday January 28, 2021 @03:48PM (#25948966)
As someone who has written a JPEG decoder, I am compelled to say that you are wrong, and the width and height are stored in the SOF marker segment.

http://vip.sugovica.hu/Sardi/kepnezo/JPEG%20File%20Layout%20...

Re:PSD is not my favourite file format (2009) by user-the-name on Friday January 29, 2021 @07:02AM (#25956400)
I might be misremembering, but at least, SOF does not tell you what is actually in the channels of the image, so it is not enough to figure out how to actually display an image.