too many cached files with subject location aware cropping #292

Open
BinaryKhaos opened this Issue Jan 22, 2013 · 0 comments

Projects

None yet

1 participant

@BinaryKhaos

With subject location aware cropping active, if a user changes the subject location several times for an image to find the right position, each time new files are generated (with the subject coordinates in the filename) while the old ones are not deleted even though they are most likely no longer used anywhere else since those coordinates are now gone and replaced with new ones.

On a larger scale (multi-user setup, several sites, ...), this can easily take quite a bit of disk space and hit other problems.

One solution would be to use a cronjob to clean up the mess but not enough information would be available to the script to make a decision what should stay and what can be safely deleted (e.g. three files with different subject locations - which is the one to go?).

It would be nice if the subject location changes, the images with the last coordinates are safely deleted after the model has been saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment