Copy amazon images to local server so that images are local and imagecache can be used
peterx - October 9, 2009 - 07:08
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta7 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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 from
http://ecx.images-amazon.com/images/I/51m6LNmQgmL._SL160_.jpg
to
/site/files/cache/51m6LNmQgmL._SL160_.jpg

#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.