Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In binaries/pngcrush.inc
you create a temporary file, then move it into place using the mv
shell built-in. This appears to partially fail when using S3. The result is temporary files being left behind. I think the mv
here should probably be replaced by file_unmanaged_move() or something that will respect the stream wrappers.
As a work-around, I've just patched that code to clean up temporary files, if they're left behind. Patch forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | imageapi_optimize-clean_up_temp_files-2495943-1.patch | 539 bytes | ergonlogic |
Comments
Comment #1
ergonlogicHere's the patch to clean up the temp files.
Comment #3
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedThanks for the patch, applied to 7.x-1.x.