[BUGFIX] Wrong generation of metadata in FAL
This patch fixes the generation of metadata if the metadata of a file is missing in sys_file_metadata. Without this patch the metadata is generated without taking care of images and their width and height. As a result, images are generated with width=0 height=0. See bugreport for details. The change also introduces the basic structure to fetch general info of files via the SplFileInfo objects API. Resolves: #62829 Releases: master, 6.2 Change-Id: Ie99fc74f3439cef5dbd3702e57596b37390da679 Reviewed-on: http://review.typo3.org/33990 Reviewed-by:Frans Saris <franssaris@gmail.com> Tested-by:
Frans Saris <franssaris@gmail.com> Reviewed-by:
Fabien Udriot <fabien.udriot@ecodev.ch> Tested-by:
Fabien Udriot <fabien.udriot@ecodev.ch> Reviewed-by:
Mathias Schreiber <mathias.schreiber@wmdb.de> Tested-by:
Mathias Schreiber <mathias.schreiber@wmdb.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Resource/AbstractFile.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Resource/AbstractFile.php
- typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php 26 additions, 1 deletion...sysext/core/Classes/Resource/Index/MetaDataRepository.php
- typo3/sysext/core/Classes/Type/File/FileInfo.php 34 additions, 0 deletionstypo3/sysext/core/Classes/Type/File/FileInfo.php
- typo3/sysext/core/Classes/Type/File/ImageInfo.php 76 additions, 0 deletionstypo3/sysext/core/Classes/Type/File/ImageInfo.php
- typo3/sysext/core/Tests/Unit/Type/File/FileInfoTest.php 33 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Type/File/FileInfoTest.php
- typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php 33 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php
Please register or sign in to comment