Hi, I have been using this tutorial and it works great.
But there is one issue: when I upload the pictures from my laptop, any portrait picture becomes landscape. Landscape is landscape.
On the other hand, when I use the computer, it prints correctly in the screen.
The images are uploaded correctly if I look at the height px and width px. (portrait will have larger height px at DB whether I use laptop or computer). But it will print in screen as landscape both on computer and laptop when I uploaded the same portrait picture from the laptop (I a talking about the same pic). When uploaded the same portrait pic from computer, it will show portrait on both computer and laptop...
Do you have any suggestion?
I am about to have a rotate feature so this may be fixed. The problem is I am new to PHP...
Any help will be greatly appreciated.
Thank you.

Recommended Answers

All 3 Replies

It has to do with the image orientation stored in the EXIF data.
camera's should add this data to the jpg but that is not standard.
Also windows xp ignores and removes this data.
the link gave but now unbroken:
http://php.net/manual/en/imagick.getimageorientation.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.