Reputation: 381
I have vertical image (1333px width and 2000px height), it correctly loaded, but when i used:
$img->identifyImage();
it print:
["geometry"] => array(2) {
["width"] => int(2000)
["height"] => int(1333)
}
Can anyone give some advice about why that happend?
Upvotes: 0
Views: 83
Reputation: 207465
Your image probably has an orientation set in its EXIF data. Have a look at the Imagick::getImageOrientation
function here.
Upvotes: 1