Project

General

Profile

Actions

Bug #92455

closed

createFile with file image extension causes ImageMagick identify errors

Added by RVVN no-lastname-given over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-09-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

since 9.5.22, creating file with an image extension ("jpeg", "jpg", "png") with Storage->createFile() causes the following errors from ImageMagick "identify" function :


identify: insufficient image data in file `/xxxxxxxx/xxxxxx/375536226116427_1338295523173821.jpeg' @ error/jpeg.c/ReadJPEGImage/1039.

identify: improper image header `/xxxxxxxx/xxxxxx/1675979572678151_2805251863084244.png' @ error/png.c/ReadPNGImage/3954.

This is because Indexing is invoked during the file creation, and Indexer extract width and height but these metadata (via ImageMagick "identify") don't exist yet.

As a side question, why indexing at file creation ?

Actions

Also available in: Atom PDF