Project

General

Profile

Actions

Bug #100803

open

Image Generation with crop to webp fails for high-resolution

Added by Christian Drost over 1 year ago. Updated 4 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2023-05-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We have an issue while generating images from high resolution and quality pictures.
The original image files are jpeg format, greater than 15MB (up to 21MB).

They are used as a gallery in a 2x2 grid inside the text & media elements.
To make them end user friendly we convert them to webp and different max-widths (640, 1280, 1920, 2880 and 3840).

But randomly these conversion fails for the whole set of f:uri.images and the f:image and the jpeg only gets converted to webp, but doesn't get cropped.

Most of the time we end up with 3 good cropped and converted images and 1 only converted to webp, if we try to move the crop for the failed one and clear the frontend cache all 4 sets of images are recreated and one of the four will be broken again.
The issue seems only to appear with high resolution/big image files.

We tried to switch graphicsmagick to imagemagick, but it's the same behavior. Images get converted but not cropped.

Debian 11
TYPO3 11.5.26
PHP 8.1
GraphicsMagick 1.4+really1.3.36+hg16481=

If we test the same project with the same images inside my ddev environment the images get converted and cropped correctly.

TYPO3 CMS 11.5.26 (Application Context: Production) - PHP 8.1.16
GraphicsMagick 1.4 snapshot-20210721 Q16

Since the images are from a customer we can't provide these at the moment.

It would be good if an error occurs while generating, it would be logged anywhere.
Also a check of the result against the given attributes like crop or dimensions should be implemented.

If the error isn't directly related to the TYPO3 generation/conversion of the images and is a misconfiguration of the server, additional notes in the documentation would be really helpful.

Actions

Also available in: Atom PDF