Closed (won't fix)
Project:
CloudFront
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Dec 2009 at 02:16 UTC
Updated:
16 Mar 2011 at 19:23 UTC
So files are left locally in the imagecache folder and also sent to S3 cloudfront. So that means every image lives in 2 places? So thousands of images could get really expensive on your hosting bill having to pay for storage in both places. Is there a reason for this or a way around it?
thanks
also, deleting a node doesn't delete the image file from S3, just the local file.
Comments
Comment #1
doublejosh commentedI understand the concern, but...
- you'd need a scaled version and the original anyhow.
- storage is must cheaper than processing, so having files ready is always best.
- if you actually have enough files to worry about storage... you don't have a problem, you have a successful business.
The deleting issue is definitely a "bug" though.
Comment #2
jordanmagnuson commentedI understand the value of having local copies of the files, but disk space can indeed become an issue... would it be possible to have an option to delete local files after the images have been moved to cloudfront?
Comment #3
jordanmagnuson commentedAlso, can I get a clarification on this, as far as what is being kept on the local server?
Let's say I have an image, "myimage.jpg", and I have two image_cache presets that I'm displaying using cloudfront:
Obviously the original image, myimage.jpg is being kept on the local server... is it also being kept on amazon's cloudfront servers?
What about the two presets? Obviously they're being kept on amazon's cloudfront servers, but are they also being kept on the local server, along with the original image (as per traditional imagecache functionality)? I'm asking, because it seems that the thumbnails would NOT need to be kept on the local server at all.
Thanks for any clarification!
Comment #4
hozt commentedCurrently all versions of the images are kept on the local server and only the imagecache presets enabled with cloudfront are sent to the cloudfront servers.
The local imagecache files do not need to be kept locally. Imagecache will automatically regenerate an image that has been removed from the local filesystem so as part of the upload process we should be able to delete the local file.
I will try to get this feature in the dev version in the next couple of days.
Comment #5
hozt commented