zimg
zimg copied to clipboard
Delete image doesn't delete thumbnails of this image in mode db
When we use ssdb/beansdb mode to store images, we can't known the thumbnails' keys of one image. So delete this image doesn't delete its thumbnails.
This feature will be implemented in the future.
Hi
Will this bug be fixed in the old versions before v4.0.0?
I have several terabytes of thumbnails in my ssdb, they are consuming my disk.
If this won't be fixed in the old versions, is there any way to delete them.
Ummm... It's hard to scan the thumbnails' keys in backend db. If necessary, I suggest you do a transfer. You need write a shell to do these:
- find all your original image keys
- download the origin image from the old zimg with ssdb
- upload to the new zimg with ssdb one by one
- drop the old ssdb
It is ugly but may work.