christophlehmann / imageoptimizer

TYPO3 Extension for lossless image optimization with binaries of your choice.
43 stars 22 forks source link

Task: check if file exists to avoid warning #40

Closed revoltek-daniel closed 4 years ago

revoltek-daniel commented 4 years ago

Check if file exists, cause if a picture is deleted from file system but assigned to an content element the process method get triggered and throws a php warning because the picture is not found.

christophlehmann commented 4 years ago

I don't understand how to trigger the warning, because you can't delete referenced files?

revoltek-daniel commented 4 years ago

This Issue happened if you delete the file not in the typo3 backend but on system level. Yes you shouldn't do this but this can happen.