Skip to content

Image orientation is not respected on width/height calculation #96

@rupasix

Description

@rupasix

Hello. Image metadata can have property Orientation: http://sylvana.net/jpegcrop/exif_orientation.html
When EXT:extractor calculates width and height, it not take it into consideration and may save switched dimensions to database which may cause another issues, eg. be crop tool for those image is not working properly because rendered image have different dim ratio then from database.

Eg:
Image

Image

Image

Crop results:
User input:
Image
Typo3 saved it as:

Image

My temporal solution is to override JSON configurations and remove width / height mapping in EXT:extractor but i'm not sure it's foolproof. Without those mappings, width/height is saved properly, at least testing image from example above. Another issue is i have dosen images on that Typo3 and don't know how to fix database according to files exif... Help.

More context about that issue: https://forge.typo3.org/issues/69274

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions