TYPO3 extension imageopt. Optimize images resized by TYPO3 so they will take less space, page will be downloaded faster and Google PageSpeed Insights score will get higher.
Other
31
stars
8
forks
source link
[BUGFIX] Exception if processed files are deleted #14
If a file is deleted after its compressed by your script the cli would throw an exception that $optimizationResult is not an object of: OptimizationResult::class. It would be nice if the script doesn't stop running. Instead you get an info now which says that the file XY could not be found.
Thanks for finding this bug!
I solved the problem with quite different code so your PR is not needed but tnx anyway!
You can find solution in version 2.0.0.
If a file is deleted after its compressed by your script the cli would throw an exception that $optimizationResult is not an object of: OptimizationResult::class. It would be nice if the script doesn't stop running. Instead you get an info now which says that the file XY could not be found.