Posted by peterx on October 9, 2009 at 7:08am
Jump to:
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta7 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Some people have external images turned off in their browser. Amazon let you cache images for 24 hours. Would be nice to have the option of caching images locally and presenting them from your own server.
The cache control, time, cron, etc would be the same as used for prices and just call an image cache deletion function. The image link could change fromhttp://ecx.images-amazon.com/images/I/51m6LNmQgmL._SL160_.jpg
to/site/files/cache/51m6LNmQgmL._SL160_.jpg
Comments
#1
Imagecache doesn't work for non-local images.
However, filefield_sources does a nice workaround on this, and perhaps we could do something like that. It would also allow the direct use of imagecache.
#2
Read about http://drupal.org/project/imagecache in more detail. It does a lot that is not needed. http://drupal.org/project/filefield_sources does one of the useful bits. I will look at the old code I used on a previous site. Draw up something in more detail. Module amazon_cache?
#3
My point about imagecache was just this:
If you download the Amazon large image, then you can use it for everything you would ever want. And it's also local.
I'd say trying to roll it as a separate module for now would be an OK approach.
#4
My understanding is that Amazon's terms state that you can cache any text retrieved from the API for up to 24 hours, but that you may not cache the actual images themselves; they must be retreived from Amazon by a user's browser.
#5
I have an email from Amazon stating the images may be cached for the same 24 hours.
#6
@peterx, thanks for the research. If you would, please post the email along with a (hopefully) reference to the on-line version.
Thanks!