@@ -66,9 +66,9 @@ std::shared_ptr<FIBITMAP> load_image(const std::wstring& filename)
66
66
CASPAR_THROW_EXCEPTION (invalid_argument () << msg_info (" Unsupported image format." ));
67
67
68
68
#ifdef WIN32
69
- auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_LoadU (fif, filename.c_str (), 0 ), FreeImage_Unload);
69
+ auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_LoadU (fif, filename.c_str (), JPEG_EXIFROTATE ), FreeImage_Unload);
70
70
#else
71
- auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_Load (fif, u8 (filename).c_str (), 0 ), FreeImage_Unload);
71
+ auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_Load (fif, u8 (filename).c_str (), JPEG_EXIFROTATE ), FreeImage_Unload);
72
72
#endif
73
73
74
74
if (FreeImage_GetBPP (bitmap.get ()) != 32 ) {
@@ -94,7 +94,7 @@ std::shared_ptr<FIBITMAP> load_png_from_memory(const void* memory_location, size
94
94
auto memory = std::unique_ptr<FIMEMORY, decltype (&FreeImage_CloseMemory)>(
95
95
FreeImage_OpenMemory (static_cast <BYTE*>(const_cast <void *>(memory_location)), static_cast <DWORD>(size)),
96
96
FreeImage_CloseMemory);
97
- auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_LoadFromMemory (fif, memory.get (), 0 ), FreeImage_Unload);
97
+ auto bitmap = std::shared_ptr<FIBITMAP>(FreeImage_LoadFromMemory (fif, memory.get (), JPEG_EXIFROTATE ), FreeImage_Unload);
98
98
99
99
if (FreeImage_GetBPP (bitmap.get ()) != 32 ) {
100
100
bitmap = std::shared_ptr<FIBITMAP>(FreeImage_ConvertTo32Bits (bitmap.get ()), FreeImage_Unload);
0 commit comments