ImageInfo Returning Height and Width Incorrectly

Description

I have an image that is 4032 in Height and 3024 in Width. But running the ImageInfo, it gives me the information flipped (shows 4032 wide, 3024 high).

I have checked the properties of the image and the EXIF data in file properties is showing the correct information. As well as photo programs.

Environment

None

Activity

Show:
Pothys - MitrahSoft
December 12, 2016, 11:31 AM

I've analyzed this ticket a lot & I couldn't able to reproduce the issue. I've tested an Image with two formats JPG & PNG having their height=4032 & width=3024. ImageInfo() return same height and width as expected.

Pull Request: https://github.com/lucee/Lucee/pull/134

Chris Hubbard
December 12, 2016, 6:29 PM

Little more details. The image that I'm having issues with has a rotate factor on the image. The image is a 90 degree Rotate Clockwise image. So the height that is passed from the ImageInfo is 3024 and the width is 4032 when the picture is the opposite.

Pothys - MitrahSoft
December 20, 2016, 7:02 AM

I've added test case for the given image too. Given image with height=4032 and width=3024, if we rotate image 90 degree in clockwise direction, rotated image height and width should be crossed reference. Imageinfo() return height=3024 & width=4032 as expected.

NOTE: Rotated image height & width should be crossed reference of original image.

Michael Offner
February 27, 2017, 10:51 AM

feel free to reopen ticket, but we really need more info to investigate.

Cannot Reproduce

Assignee

Michael Offner

Reporter

Chris Hubbard

Priority

New

Labels

None

Fix versions

None

Affects versions

Configure