Strangely enough pictures that have a bigger height than width are automatically rotated to landscape format.
Totally unusable.
When a picture is loaded with LoadImage it's rotated, when the same jpg picture is loaded with the WebGadget the orientation is preserved.
Automatic rotation of an image is bad.
Picture in Portrait Mode is Automatically Landscaped
Picture in Portrait Mode is Automatically Landscaped
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: Picture in Portrait Mode is Automatically Landscaped
I would 99% guess that the image file is actually landscape - probably from a phone or camera?
The WebGadget and other viewing software are probably auto-rotating it based on EXIF metadata.
Maybe there should be a flag request for LoadImage() to handle EXIF rotation data, but in the meantime somebody here can probably point you to some EXIF handling code.
The WebGadget and other viewing software are probably auto-rotating it based on EXIF metadata.
Maybe there should be a flag request for LoadImage() to handle EXIF rotation data, but in the meantime somebody here can probably point you to some EXIF handling code.
Re: Picture in Portrait Mode is Automatically Landscaped
@kenmo
Sorry for the late reply.
I think you are right it's a picture from a camera and the EXIF information is in there.
And EXIF has 8 modes of orientation
I'm sure LoadImage does not look into EXIF meta data...
Thank you for your hint.
ADMIN
Please move this to the "normal" macOS section.
(not bugs...)
Sorry for the late reply.
I think you are right it's a picture from a camera and the EXIF information is in there.
And EXIF has 8 modes of orientation
I'm sure LoadImage does not look into EXIF meta data...
Thank you for your hint.
ADMIN
Please move this to the "normal" macOS section.
(not bugs...)
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: Picture in Portrait Mode is Automatically Landscaped
It's indeed related to exif orientation.
You could use OSX API instead to load the image.
You could use OSX API instead to load the image.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)