SDL_image icon indicating copy to clipboard operation
SDL_image copied to clipboard

On Mac, rotating image in Finder does not result in rotated image after loading

Open coinbump opened this issue 5 months ago • 8 comments

Here's the code:

SDL_Surface* surface = IMG_Load(path.string().c_str());

This works usually, but if I use the Mac Finder to rotate an image (command-L), the image appears rotated in the Finder, but loads with the original orientation in SDLImage.

I suspect this is some kind of optimization in MacOS to make rotation a change in metadata instead of actually rotating the image pixels to save time, but I'm not sure.

coinbump avatar Sep 07 '24 22:09 coinbump