https://bugs.winehq.org/show_bug.cgi?id=55398
Bug ID: 55398 Summary: GDI+ does not support EXIF orientation information Product: Wine Version: 8.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com CC: madewokherd@gmail.com Distribution: ---
GDI+ does not support parsing EXIF orientation from JPEG images.
This seemingly leads to some apps being unable to displaying images in the correct orientation, making the image look rotated.
https://bugs.winehq.org/show_bug.cgi?id=55398
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- (In reply to Jinoh Kang from comment #0)
GDI+ does not support parsing EXIF orientation from JPEG images.
This seemingly leads to some apps being unable to displaying images in the correct orientation, making the image look rotated.
What application(s)? Can you provide a reproducible example?
https://bugs.winehq.org/show_bug.cgi?id=55398
--- Comment #2 from Jinoh Kang jinoh.kang.kr@gmail.com --- Affected Applications:
- (Suspected) KakaoTalk image preview ignores EXIF orientation. Thumbnails are not affected, presumably because the image is pre-processed by the server with the rotation applied.
https://bugs.winehq.org/show_bug.cgi?id=55398
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl
--- Comment #3 from Bartosz gang65@poczta.onet.pl --- The support for EXIF in gdiplus is provided by EmfPlusCompressedImage Object: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emfplus/9c0...
And these objects are used by EmfPlusBitmap: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emfplus/112...
It seems that EXIF support was implemented only for PNG: https://gitlab.winehq.org/wine/wine/-/blob/wine-8.13/dlls/gdiplus/metafile.c...
https://bugs.winehq.org/show_bug.cgi?id=55398
--- Comment #4 from Bartosz gang65@poczta.onet.pl --- Please use winetricks to install native gdiplus.
Is this issue is resolved with native gdiplus?
https://bugs.winehq.org/show_bug.cgi?id=55398
--- Comment #5 from Jinoh Kang jinoh.kang.kr@gmail.com --- (In reply to Bartosz from comment #4)
Please use winetricks to install native gdiplus.
Is this issue is resolved with native gdiplus?
Actually no, which led me to believe that the actual missing facility lies in one of the backend components (e.g., windowscodecs, which seems to emit a lot of "unsupported" messages in channel wincodecs). Maybe I could borrow windowscodecs.dll from Windows too and test with it; not sure how well it will work out though. Thanks for reminding me of using winetricks for feature-parity testing though.
It's still true that GDI+ does not support EXIF, directly or indirectly, so I'll leave this issue open. I'll submit another ticket once I identify the missing API/codec/format, but this will take a while.
https://bugs.winehq.org/show_bug.cgi?id=55398
--- Comment #6 from Jinoh Kang jinoh.kang.kr@gmail.com --- (In reply to Jinoh Kang from comment #5)
I'll submit another ticket once I identify the missing API/codec/format, but this will take a while.
*once I identify the missing API/codec/format which is completely unrelated to GDI+, which would be out-of-scope for this bug ticket.
https://bugs.winehq.org/show_bug.cgi?id=55398
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://app-pc.kakaocdn.net | |/talk/win32/KakaoTalk_Setup | |.exe Summary|GDI+ does not support EXIF |GDI+ or its backend does |orientation information |not support EXIF | |orientation information | |from JPEG streams Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=55398
Jeff Smith whydoubt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |whydoubt@gmail.com
--- Comment #7 from Jeff Smith whydoubt@gmail.com --- Neither WIC/windowscodecs nor GDI+ currently support metadata from JPEG files. While I have begun working on the WIC portion, it is rather more complex than the other formats I have worked on, and will take a little while. I believe the GDI+ portion is best left until the WIC portion is in decent shape.