ImageCache duplicate images with CCK image field.

Tytest - August 21, 2009 - 13:26
Project:ImageCache
Version:6.x-2.0-beta9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

geijutsuka - October 30, 2009 - 18:03

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.

#2

oklok - November 1, 2009 - 17:54

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

AttachmentSize
test.jpg 67.48 KB

#3

oklok - November 2, 2009 - 19:48

.

AttachmentSize
pic.jpg 102.79 KB

#4

JaredAM - November 11, 2009 - 10:02

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

#5

geijutsuka - November 17, 2009 - 14:11

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.

#6

JaredAM - November 17, 2009 - 16:16

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

#7

geijutsuka - November 17, 2009 - 16:59

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

 
 

Drupal is a registered trademark of Dries Buytaert.