Hi folks,
What is the best URL to view ZP images from another website (eg. wordpress) so that the height and width (etc.) can be set in url parameters? This is surely documented somewhere, but I can't find it.
I have been using zenphotopress to embed images into wordpress for 6 years no problems at all. Since 1.4.4 (or 1.4.X), the image URLs are broken and need to be updated.
Here's an example of what doesn't work anymore:
http://www.exploringbliss.com/photography/zp-core/i.php?a=canada&i=20090826-Canada-2701.jpg&w=590&h=
thanks for any suggestions you might have.
Cheers,
Fraser
That actually never worked. Remove the "w" and "h" part and replace it by "s".
http://www.zenphoto.org/documentation/core/_i.php.html
thanks guys.
Below is what I ended up doing since we can't do this via url params anymore. Of course it would be easier if I just used the same size images in blog posts and in the gallery....
temporarily change the size of ZP images in my theme's options to match the size i need wordpress (590)
cache all images and change image size back to zenphoto size (795)
change broken img src's in wordpress to newly cached images:
This works fine, but I will have to remember to do 1 & 2 everytime I want to display an images in wordpress that hasn't already been cached.
You do not have to change the theme image size to cache an arbitrary sized image. You can just set up such a size in the options for the cacheManager and select that when you cache the images.
Sorry about the inconvenience--but the alternative is that someone could flood your site with image resizing requests in a severe denial of service attack by issuing arbitrary image processor links.
We have made a small modification of the security guard. Now if the image that the i.php link references has already been cached the image will be fetched. Otherwise the security guard kicks in. So all you have to do for the plugin to continue to work is to be sure you have cached the images.
Thanks! Waiting for to get new version soon.
Besides, hope i.php can continue support &s=thumb parameter as well.
For exmaple:
Many thanks in advance.
Chris
Just so we are all on the same page, with the current builds of the 1.4.4 release there is an option for Image Processor Security. When this is set there is a token added to the i.php URI that must be valid when the image is processed. This will not change.
If the option is set and an external site issues a fetch on an i.php image link that does not have this token and if the image is not already cashed the image will not be delivered.
So your choices are:
Hi sbillard,
- Cache the images you want to display externally
How to I generate cache image for i.php using s=thumb parameter?
For example:
Please advise if following steps are correct
On Option / Image page
unchecked "Secure image processor" checkbox
On Overview Page
Click "Cache" button to generate all cache image
On cache folder, I find the following cache image:
kate-tsui-20110504-131612_128_thumb.jpg
kate-tsui-20110504-131612_240_thumb.jpg
kate-tsui-20110504-131612_40_cw40_ch40_thumb.jpg
kate-tsui-20110504-131612_85_cw85_ch85_thumb.jpg
kate-tsui-20110504-131612_85_thumb.jpg
kate-tsui-20110504-131612_w128_h128_cw128_ch128_thumb.jpg
kate-tsui-20110504-131612_w75_h75_cw75_ch75_thumb.jpg
If I use the following link, the browser only return blank page:
Any hints?
** The above URL was generated by zenphotopress... and I have lot of Wordpress Post using it to display album thumbnail.