[BUGFIX] LocalImageProcessor cannot reuse remote files 05/46905/4
authorAndreas Wolf <dev@a-w.io>
Fri, 26 Feb 2016 09:46:39 +0000 (10:46 +0100)
committerBenni Mack <benni@typo3.org>
Sat, 5 Mar 2016 23:53:06 +0000 (00:53 +0100)
commitefa96ba51498121066afd644593268862cc9af16
tree7284e32a6e94bc097ddd44037c589ba2ee3e444b
parent4eae63bd6139f51fd27bc05c7738d7e74411a151
[BUGFIX] LocalImageProcessor cannot reuse remote files

The LocalImageProcessor had a check for the storage type, to only do a
check for existing files on local storages, as it needed to fetch an
existing file from the storage to get metadata from it.

This check is now replaced by a proper usage of the FAL API: Fetch the
generated file for local (read-only) processing, which in case of a
local storage means the file is not moved at all. Then, the image
metadata can be extracted from the local file and the file index record
of the processed file can be updated accordingly.

Change-Id: I9fca326fe1d1743cd53a0a85c674ff81e5a051b9
Releases: master, 7.6
Resolves: #67126
Reviewed-on: https://review.typo3.org/46905
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php