Task #55447
closedEpic #55070: Workpackages
Epic #54260: WP: FAL Missing Issues / Features / API
Story #54270: As an User I need to upgrade from pre-FAL or DAM Installations
RTE magic images should be migrated to processed files
0%
Description
The current RTE magic images migration script goes through the reference index looking for files with the "old prefix" ($GLOBALS['TYPO3_CONF_VARS']['BE']['RTE_imageStorageDir'] . 'RTEmagicC_'). It moves/renames the image file and creates a file object in the default storage.
This is fine, except that the image cannot really be considered "magic" anymore, because the reference to any original image is lost. Before 6.0, a copy of the original image was created in the same folder as the magic image. It was prefixed 'RTEmagicP_' instead of 'RTEmagicC_', the rest of the name being identical. If the dimensions of the magic image were edited, a new magic image with the new dimensions could be created from this copy of the original image.
The migration script should be modified in order to create both a file object for the copy of the original image, and a processed file object for the magic image itself. This way, the dimensions of the magic image could be edited and the copy of the original image could be reprocessed to the new dimensions.