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));