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

Attachments

1

Activity

Michael Offner 
27 February 2017 at 10:51

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

Pothys - MitrahSoft 
20 December 2016 at 07:02

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.

Chris Hubbard 
12 December 2016 at 18:29

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 
12 December 2016 at 11:31

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

Cannot Reproduce

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 8 December 2016 at 20:43
Updated 20 May 2023 at 15:34
Resolved 27 February 2017 at 10:50