I'm working on a script to show images and wait for some input based on the orientation of the image.
The Picture Control, however, is showing the images in their original orientation (I assume) rather than their current orientation. Every other image viewer I have shows them correctly.
I believe the issue is that the images are being rotated by way of an EXIF orientation value, but AHK is ignoring that. The result is that AHK displays the picture incorrectly.
I've attached an image that SHOULD display upside down. In my GUI, it displays sideways.
AHK 2 Gui Picture images rotated incorrectly
AHK 2 Gui Picture images rotated incorrectly
- Attachments
-
- _BlueCase_21_0002.jpg (1.29 MiB) Viewed 577 times
Re: AHK 2 Gui Picture images rotated incorrectly
I would say that AutoHotkey/Gui Picture isn't an image viewer.Every other image viewer
In my GUI, it displays upside down.I've attached an image that SHOULD display upside down. In my GUI, it displays sideways.
Code: Select all
g := Gui()
g.AddPicture(, "_BlueCase_21_0002.jpg")
g.Show()
AutoHotkey/Gui/Picture/LoadPicture has no concept of EXIF metadata whatsoever. It just uses OS routines to load an image. It uses OleLoadPicture by default, or GDI+ if you use the AltSubmit option. I see no difference in behaviour between the two.