Hi,
Thanks for your module.
When i tried initially, the "external" folder was created in root folder of my site which in turn causes the problem in showing the image(as image cache looks for the file in files directory).
After editing the code i was able to display the images through image cache.
And there is some change in content type from result data while creating the external image.
Is there anything wrong i did?
Once again thanks for spending your time.

Comments

larowlan’s picture

Status: Active » Closed (works as designed)

Hi
The module does not create an external folder.
It creates a folder in /path/to/your/files/externals and caches the actual downloaded files there.
The external bit in the path is a menu callback which handles the imagecache etc.
Ie it is a menu path, not a file path.
So if your image is http://farm5.static.flickr.com/4103/5057344168_aef891e819.jpg
Your html to show the myimagecache preset for this would be:

<img src="/external/myimagecache/http://farm5.static.flickr.com/4103/5057344168_aef891e819.jpg" alt="image description" />

The actual file (http://farm5.static.flickr.com/4103/5057344168_aef891e819.jpg) would be available in
/files/external/83b70ae9220ec92029aa4a2d65318bd4 which is handed to imagecache in the menu callback.
Hopefully that makes sense.
Lee