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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView1.IO.LoadFromFile loads images with their orientation reversed

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dreamnyj Posted - Apr 26 2026 : 21:03:45
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
3   L A T E S T    R E P L I E S    (Newest First)
dreamnyj Posted - Apr 28 2026 : 04:01:09
Thank you very much for your answer. According to the above settings, I successfully achieved automatic flipping of photos.
xequte Posted - Apr 27 2026 : 20:40:29
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
dreamnyj Posted - Apr 26 2026 : 21:10:41
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));