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

hmdnawaz created an issue. See original summary.

hmdnawaz’s picture

Issue summary: View changes
hmdnawaz’s picture

These files are removed in the __destruct function in the ImageAPIOptimizePipeline.php, but I think that function is not called or temporaryFiles is empty.

hmdnawaz’s picture

The 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.

rar9’s picture

Same there , using last imagemagick 7.

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for the issue report.

Is this still happening with the latest releases?