zimg icon indicating copy to clipboard operation
zimg copied to clipboard

Delete image doesn't delete thumbnails of this image in mode db

Open buaazp opened this issue 9 years ago • 2 comments

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.

buaazp avatar Aug 13 '15 04:08 buaazp

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.

BeaverCC avatar Mar 19 '18 10:03 BeaverCC

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.

buaazp avatar Apr 10 '18 06:04 buaazp