SDL_image
SDL_image copied to clipboard
On Mac, rotating image in Finder does not result in rotated image after loading
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.