Thank you for making ZenPhoto. I am glad that I found it.
What is the best URL to use for an image thumbnail, such as one might use in a blog post? I have seen the two following types of URLs for thumbnails in ZenPhoto. Is one of these preferred over the other, or is there a third type of URL that I am not aware of?
https://www.blackgate.net/gallery/zp-core/i.php?a=Collections/Mugs_of_August&i=2011_August_02.jpg&s=595&cw=0&ch=0&q=85&wmk=!&check=6570c91b09702b678700ccd6551fdd25276e6390https://www.blackgate.net/gallery/cache/Collections/Mugs_of_August/2011_August_02_595.jpgI have searched here for a solution, but it seems that most people want to prevent hotlinking, not make it easier.
Thank you.
Comments
So the second is the preferred one. To use it you need to make sure that the image is actually cached.
http://www.zenphoto.org/news/caching
What I want is a url that links to a thumbnail for an image. Typically, such a url would be a link to a script that returns the cached version (creating the cached version first, *if* it does not already exist).
It seemed reasonable to me to assume that Zenphoto would have this functionality, but it sounds like it may not.
Does Zenphoto have this functionality?
What you probably actually mean is an API for outside access. We don't exactly have one. The externalFeed plugin might be a workaround.
Not quite as efficient as the browser directly fetching the cached image, but it will work whether or not there is a cached copy. The cache link will, of course, fail if you clear the cache or otherwise there is no cache copy of the thumbnail.
Thank you for your patience. This has been very helpful.