We help IT Professionals succeed at work.
Troubleshooting Question

JPG orientation with Delphi7

23 Views
Last Modified: 2020-10-25
Hey experts

I have this problem with some JPG files as like this example
the left original image appears correctly in a folder
but when loaded in my Delphi program, it results as this image on the right


Thanks for your help
Comment
Watch Question

ste5anSenior Developer
CERTIFIED EXPERT

Commented:
The problem is your assumption.

A JPEG has a physical orientation. Your Delphi component respects this. The other tool uses proprably the image properties to adjust orientation.

What JPEG component?

Author

Commented:
Hey ste5an

Thanks for your answer

I use the standard jpeg.dcu component
Sorry I dont know how I can solve this assumption problem



CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks Ferruccio

it works well for rotation 90 right or 90 left
for rotation 180, I made a double rotation 90 right - but it could be smart to make it differently






CERTIFIED EXPERT

Commented:
Right now i'm home due to covid restrictions.
Tomorrow i'll take a look at it
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION