Problem/Motivation
We are using this module with the webp module. I can see the tmp directory as polluted with these files
image_api_optimize_JqgtQqDjh3s.webp image_api_optimize_eCssI1Iz4go.webp image_api_optimize_zZ1HJxVaW6Q.webp
image_api_optimize_JqksBg9tvcI.webp image_api_optimize_eD1ivWhOYzk.webp image_api_optimize_zZ2W0vh3p3k.webp
image_api_optimize_JqmHAK0reVM.webp image_api_optimize_eD29WP1K-Ng.webp image_api_optimize_zZ5BGcnhjS8.webp
image_api_optimize_JqomW3XdQQ4.webp image_api_optimize_eD2hSQDIH30.webp image_api_optimize_zZ5HlAWbCSk.webp
image_api_optimize_Jqqr4BUyH2g.webp image_api_optimize_eD6JHktac8E.webp image_api_optimize_zZ5SdLJV3Yg.webp
The directory doesn't have any other things except the above type of files and because of that the tmp directory size is about 30GB
When are these files generated? And Why they are not deleted?
Comments
Comment #2
hmdnawaz commentedComment #3
hmdnawaz commentedThese files are removed in the
__destructfunction in theImageAPIOptimizePipeline.php, but I think that function is not called ortemporaryFilesis empty.Comment #4
hmdnawaz commentedThe other types like jpg, and png are removed from the tmp directory but not the webp, I tried to remove the webp as well, but then the image upload not work.
So now I will write a cron function to remove the .webp files from the tmp directory. until the issue is fixed.
Comment #5
rar9 commentedSame there , using last imagemagick 7.
Comment #6
gregglesThanks for the issue report.
Is this still happening with the latest releases?