I have Acidfree album module installed. It uses your image.module, so it's behaviour is the same as your image.module. If I import image, original is imported to server, resized copy is made and thumbnail is made. So at the end, we have three files. I know why it is this way - If anybody wants to resize images in future, they are resized from originals and not from resized copy. Ok, it's useful, but not for me. I don't plan to resize images in future. Another thing - I don't have unlimited hosting space. So I store originals on DVDs and I want only resized images stored on server.

Is there any possibility to delete original images after they were resized and thumbnailed? I know I can do it manualy, but in case of Acidfree album, resized image (640x480 for example) refers to original image (1600x1280 for example). So deleting original could lead to broken link if user suddenly clickes the resized image.

I don't ask you to add some option for it (it would be nice, but you have more important things to do). Can you at least give some clue how can I change the code to delete originals after resize?

Thanks a lot

lakyljuk

Comments

treadings’s picture

I would also like to see a resolution to this - I am just using the image module itself and will have a large number of images - I do not want to leave large images online or rely on the user to resize them appropriately, so would like the image module to do the work by resizing or deleting the 'original' image as well as thumbnail and previews.

Any answers or suggestions of where to look much appreciated, cheers for raising the question lakyljuk.

lakyljuk’s picture

My original post is quite old as you can see - Acidfree grew up since, so it is solved already. I recomend you to switch to Acidfree, it can do anythinq you want it to and much more :) I am using 4.7.3 drupal and latest version of Acidfree and it works very good.

lakyljuk

drewish’s picture

Status: Active » Closed (fixed)

if everythings working then don't forget to close the issue ;)