Issue Bug Closed

#107179Image Crop not respecting image orientation

Katharina Strasser 07/30/25, 12:42 updated 07/31/25, 15:26

Description

Hello,

we found an issue if the image has its orientation in the metadata and should be cropped via the Typo3 FAL Image Editor.

If an image is taken in the “portrait” orientation (orientation stored in the file metadata). The crop function seems to ignore this and outputs the wrong section of the image.

This already happens in the backend of Typo3 with its default Media Eleme

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 4

History 9

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-07-30T13:31:58+00:00" > 07/30/25, 13:31 </span>

    Do you have more information on this, maybe screenshots and expected output? Not sure I understand what specifically is happening. Thanks!

  2. Katharina Strasser commented <span data-processor="relativetime" data-value="2025-07-30T14:10:14+00:00" > 07/30/25, 14:10 </span>

    I can’t reproduce a test-image, but the Image was taken by an IPhone in the vertical orientation. And then uploaded to Typo3.

    The crop function of the image editor seems to think the image is horizontal, therefore the crop shows the wrong position.

    I cannot share screenshots of the customers content.

  3. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-07-30T15:15:50+00:00" > 07/30/25, 15:15 </span>

    That sounds a bit like the EXIF meta data might not have been read out properly? Usually the image would be displayed properly. Please create an image that showcases this, otherwise I’m afraid we can’t help here – for me it works with proper EXIF data here.

  4. Katharina Strasser commented and changed attached Test.jpg attached crop bug.png <span data-processor="relativetime" data-value="2025-07-31T06:53:54+00:00" > 07/31/25, 06:53 </span>

    I created a test “Test.jpg” image which causes the issue. Its created with GIMP and this command was used on the image after exporting: “exiftool -Orientation=6 -n Test.jpg”

    Orientation=6 is the same value as the photo from the IPhone

    The frontend shows the same result.

    Reprocude steps:
    1. Upload Test.jpg
    2. Insert as Media in any Element
    3. Try to crop one letter from the image using the Typo3 image editor
    4. Save the record

    crop%20bug.png

    Test.jpg

  5. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-07-31T11:38:06+00:00" > 07/31/25, 11:38 </span>

    Hi!

    Thanks a lot – using that image it does indeed work properly for me.

    Can you please give your exact image processing settings (via Backend System > Configuration TYPO3_CONF_VARS)?

    Specifically these in GFX:

    • processor
    • processor_allowFrameSelection
    • processor_allowUpscaling
    • processor_colorspace
    • processor_effects
    • processor_enabled
    • processor_interlace
    • processor_path
    • processor_path_lzw
    • processor_stripColorProfileByDefault
    • processor_stripColorProfileParameters

    And did you check in Admin Tools > Environment > Image Processing if there are any differences in generation? Also I could need the output in Image Processing > Current configuration.

    Thanks!

  6. Katharina Strasser commented <span data-processor="relativetime" data-value="2025-07-31T11:59:54+00:00" > 07/31/25, 11:59 </span>

    These are the GFX settings:

    avif_quality = 85
    imagefile_ext = gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg,webp,avif
    jpg_quality = 90
    processor = ImageMagick
    processor_allowFrameSelection = 1
    processor_allowUpscaling =
    processor_colorspace =
    processor_effects = 1
    processor_enabled = 1
    processor_interlace = None
    processor_path = /usr/bin/
    processor_stripColorProfileByDefault = 1
    processor_stripColorProfileParameters
        0 = +profile
        1 = *
    thumbnails = 1
    webp_quality = 90

    I noticed the avif conversion of the Conversion check faild. We don’t use avif files.

  7. Garvin Hicking commented and changed attached Screenshot 2025-07-31 at 14.13.11.png <span data-processor="relativetime" data-value="2025-07-31T12:19:06+00:00" > 07/31/25, 12:19 </span>

    Could you also report the information as shown in my screenshot about the specific imagemagick version?

    I used all your settings in my setup and it still works as intended. Did you try to reproduce this in a vanilla TYPO3 installation without any non-core extensions, could any extension maybe interfer here?

    (However I think it’s more likely the imagemagick version that might cause the hickup. Do you have the chance to test it with graphicsmagick?)

  8. Katharina Strasser commented and changed attached clipboard-202507311423-aln9r.png <span data-processor="relativetime" data-value="2025-07-31T12:36:27+00:00" > 07/31/25, 12:36 </span>

    I attached a screenshot of the current configuration.

    I checked the installed extensions and found the one that causes the issue. “extractor” causes this to happen.

    I think this issue can be closed and I contact the autor of the extension.

    Sorry for the inconvenience

  9. Garvin Hicking commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2025-07-31T15:26:52+00:00" > 07/31/25, 15:26 </span>

    Great you could localize this! And don’t worry this was no inconvenience :-)