[FLOW3-general] Resource Management
Bastian Waidelich
bastian at typo3.org
Thu Jan 26 17:09:07 CET 2012
Thomas Plessis wrote:
> I'm using Imagine to resize and crop image, like in "Imagine.git".
> After cropping an image, i still have two resources in the database, the old one and the new cropped one. The old one is never deleted.
> Same in Data/Persistence/Resources. How to clean unused resources?
Thats true. Currently you probably need to write some clean up command
that deletes resources without references..
BTW: In the TYPO3.Media package we introduced the notion of
"ImageVariants": If you modify an image (resize, crop, ...) the
resulting Image has a reference to the original image, so you can
restore it. Therefore we need both references there.
But in general it should be possible to work with resources
independently from the persistence layer (see [1]).
Best,
Bastian
[1] http://forge.typo3.org/issues/33469
More information about the FLOW3-general
mailing list