- Affected version
- XFMG 2.1.0 Preview 1
This is probably working as designed, but if that is the case the design IMHO isn't exactly that great
When rebuilding media item thumbnails,
This isn't a problem per se as the garbage collector built into
But if this is used from CLI, all those temporary files will stay until all thumbnails are rebuilt which can cause the temporary folder to grow to a significant size.
It would be nice if this could be changed to immediately clean up the temporary files after the image has been loaded.
When rebuilding media item thumbnails,
\XFMG\Repository\Media::rebuildImageThumb()
copies the full size image to a temporary file, but does not clean up this temporary file.This isn't a problem per se as the garbage collector built into
\XF\Util\File
automatically cleans them up when the script terminates.But if this is used from CLI, all those temporary files will stay until all thumbnails are rebuilt which can cause the temporary folder to grow to a significant size.
It would be nice if this could be changed to immediately clean up the temporary files after the image has been loaded.