Hacker News new | ask | show | jobs
by fireattack 2613 days ago
JPEG lossless rotation can only be done if the dimensions (height and width in px) of the image are multiples of MCU (typically 8x8 for 4:4:4 or 16x16 for 4:2:0).
2 comments

For the uninitiated, MCU is not Marvel Cinematic Universe as the search results might try to confuse you. It's Minimum Coded Units, and a nice explanation is over here:

>https://www.impulseadventure.com/photo/rotation-partial-mcu....

Edit: the link also closed for me a forgotten open loop about the meaning of an annoying error message Windows XP era. Thanks for making me look it up!

ImpulseAdventure is THE place when I look for reference related to anything about JPEG.

He also has a very useful utility (I normally use it to check DCT table) called JPEGSnoop [1].

[1] https://www.impulseadventure.com/photo/jpeg-snoop.html

Sure, that's a good enough excuse. I look forward to defeating government facial recognition algorithms by holding my head at an angle.