ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView1.IO.LoadFromFile loads images with their orientation reversed
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dreamnyj

China
3 Posts

Posted - Apr 26 2026 :  21:03:45  Show Profile  Reply
I am using the TImageEnView control to load a jpg image taken by a mobile phone,
but it is upside down. However, such images will automatically rotate in Windows.
I don't know what the reason is. I have uploaded the 3.9mb image to the attachment.
I would appreciate it if any experts could give me some guidance on how to automatically rotate this image.
Or why it is upside down.

Thank you.


ImageEnView1.IO.ExecuteOpenDialog for loading images



original JPEG image
attach/dreamnyj/2026426205854_demoimage1.jpg

dreamnyj

China
3 Posts

Posted - Apr 26 2026 :  21:10:41  Show Profile  Reply
I have used the following code to try to achieve automatic rotation, but it seems to be ineffective. I would appreciate guidance from experts who know better.


FormImgEditor.ImageEnView1.IO.Params.EnableAdjustOrientation:=true;
FormImgEditor.ImageEnView1.IO.LoadFromFile(strImgFileName,FindFileFormat(strImgFileName));
Go to Top of Page

xequte

39397 Posts

Posted - Apr 27 2026 :  20:40:29  Show Profile  Reply
Hi

This image is upside-down, and only the meta data makes it display correctly in Windows (EnableAdjustOrientation in ImageEn).

EnableAdjustOrientation is applied per TImageEnView/TIEBitmap. By default it is off, so to make it enabled universally (including in places that are difficult to set such as the open dialog, use:

  IEGlobalSettings().IOParamDefaults.EnableAdjustOrientation := True;

See: https://www.imageen.com/help/TIEGlobalSettings.IOParamDefaults.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

dreamnyj

China
3 Posts

Posted - Apr 28 2026 :  04:01:09  Show Profile  Reply
Thank you very much for your answer. According to the above settings, I successfully achieved automatic flipping of photos.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: