Project

General

Profile

Actions

Task #106166

closed

ImageProcessing exception for width/height=0 asks for reporting but misses important details

Added by Garvin Hicking about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Category:
Image Generation / GIFBUILDER
Target version:
Start date:
2025-02-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

If imageprocessing fails because width or height is resolved to 0, an exception is thrown:

throw new \LogicException('Image processing instructions did not resolve into coherent positive width and height values. This is a bug. Please report.', 1709806820);

However, it is hard to see how an image was to be processed without extra information.

At least details like resolved width/height, croparea and option configuration should be mentioned.

Original bug report: https://typo3.slack.com/archives/C025BQLFA/p1739430010221999


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #103351: Avoid duplicate image crop (crop-crop-scale to crop-scale)ClosedBenjamin Franzke2024-03-08

Actions
Related to TYPO3 Core - Bug #106169: Creating 64x64 thumbnails with extreme proportions may failResolvedGarvin Hicking2025-02-13

Actions
Actions #2

Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88203

Actions #3

Updated by Gerrit Code Review about 1 month ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88203

Actions #4

Updated by Garvin Hicking about 1 month ago

  • Related to Task #103351: Avoid duplicate image crop (crop-crop-scale to crop-scale) added
Actions #5

Updated by Garvin Hicking about 1 month ago

  • Description updated (diff)
Actions #6

Updated by Gerrit Code Review about 1 month ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88203

Actions #7

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #106169: Creating 64x64 thumbnails with extreme proportions may fail added
Actions #8

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88275

Actions #9

Updated by Garvin Hicking about 1 month ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF