I've got a ImageCache preset to convert the original image (1600x1200) to 800x600 and then create a thumb of 150x130. Images are uploaded via a new content type I've created with CCK, this uses an image field to upload.

The images are being saved in.

../files/imagecache/800x600/
../files/imagecache/thumb/

AND also duplicates in:

../files/
../files/imagefield_thumbs/

Seems like a lot of wasted disk space. Any idea what is going on here?

CommentFileSizeAuthor
#3 pic.jpg102.79 KBoklok
#2 test.jpg67.48 KBoklok

Comments

Geijutsuka’s picture

I am having the exact same issue! If I upload an image (through Imagefield) the same image will be uploaded in the imagefield_thumbs folder and the files root folder. I somewhat understand the ImageCache directory having it's own copy (sorting images according to automatic presets), but having doubles, triples, or even quadruples of the same one image is insanely wasteful of space! In the CCK content type which has the image, I have to put a path that would make sense in the imagefield_thumbs directory, but it also shows up in the root and makes no sense there (e.g. naming the path "people" would show up in the structure as "website/files/imagefield_thumbs/people" BUT it would also show up as "website/files/people"). Then ImageCache saves it's own versions.... *sigh.* I hope quicksketch or someone can help us.

oklok’s picture

StatusFileSize
new67.48 KB

I three have this duplicates problem as #1 described, this must be a bug?

oklok’s picture

StatusFileSize
new102.79 KB

.

JaredAM’s picture

Sounds like this is by design. http://drupal.org/node/550912

Geijutsuka’s picture

Yeah... It appears as if the "_thumbs" are for the little thumbnail as you're filling in the content type... I guess I can see why those should be made. The two imagecache ones are for the automatic resizing you want, the /files/ holds the original and the imagefield_thumbs holds all the little preview thumbs of the images when you're uploading them. Makes sense... but it sure is a lot of different files of the same image-- there probably isn't any other way of doing it.

JaredAM’s picture

Yup, but I guess this is fixed in D7 since both are in core and they can play nice with each other.

Geijutsuka’s picture

Oh goody! Things are always so much less frustrating when modules play nice with each other.

aitala’s picture

Version: 6.x-2.0-beta9 » 6.x-2.0-beta10

HI,

I am having a similar issue with one major exception...

My example - I have a preset called 'review_image_thumb' but I am using Filefield, Pathauto, and Transliterate to put my images (and their derivatives) for a custom content type called 'reviews' in subdirectories.

So the original image goes in default/files/reviews/REVIEW_NAME/file_name.jpg, the Imagecache Derivatives go in default/files/imagecache/review_image_thumb/reviews/REVIEW_NAME/file_name.jpg, etc. However, I am also getting image derivatives like default/files/imagecache/review_image_thumb/file_name.jpg and occasionally like default/files/file_name.jpg .

When you look at the HTML for a published review node, the links for the images and their derivatives all point to the correct subdirectories (default/files/reviews/REVIEW_NAME and default/files/imagecache/review_image_thumb/reviews/REVIEW_NAME).

I have been removing the misplaced copies by hand but its a bit of a pain and I think occasionally may be causing the system to hang. It does not seem to happen all the time, so I don't really know how to diagnose it.

For reference, I am using

  • ImageCache 6.x-2.0-beta10
  • Transliteration 6.x-3.0
  • Token 6.x-1.15
  • Pathauto 6.x-1.5
  • ImageField Extended 6.x-4.1
  • ImageField 6.x-3.9
  • FileField 6.x-3.9
  • FileField Paths 6.x-1.4

Eric

leisurman’s picture

I am having the same problem. Drupal V.6. We have upload 8 gigs worth of pdfs.
These files are being duplicated.

/files/X
and
/files/imagefield_thumbs/X

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this is still an issue with ImageCache 6.x-2.0-rc1.