Member
Member
daviding   2009-11-17, 04:18
#1

Is there a URL (e.g. mywebsite.com/zenphoto/zp-core/something.php?image=filename&width=480) so that I could have Zenphoto serve up a resized image?

I want to use Zenphoto as a webphoto server. I maintain my full-size photos (e.g. 5MP to 10MP) in a private archive using Qdig, and downsample (using Xnview) to 1024x768px images for webphotos that I ftp into Zenphoto albums.

I can embed the 1024x768px photos directly (e.g. mywebsite.com/zenphoto/albums/albumname/imagename.jpg ) with a link (i.e. a href="address" width="480"), but then full-size images get sent to the browser so that resizing happens on the client. If I could get the images served up smaller (e.g. 480px wide), then the resizing would happen on the server, and less data would be sent to the browser.

The images will eventually show up in a Wordpress blog. I don't really want to use a Wordpress plugin (i.e. Zenphoto extension), because I'm writing some complicated HTML -- I use the Wordpress Shadowbox JS plugin -- so short tags would only make things more confused.

I like the simplicity of Zenphoto, and am looking forward to liberating my webphotos from the built-in gallery of Wordpress. I really like that Zenphoto has an RSS. I just have to figure out the best way to use Zenphoto. Thanks.

Administrator
Administrator
acrylian   2009-11-17, 10:36
#2

You can try to use the Zenphoto image process via zp-core/i.php. Look at the comments on the top of the file for the available parameters.

You can also use Zenphoto functions outside of Zenphoto following this way:
http://www.zenphoto.org/2009/11/zenphoto-as-a-plug-in-using-zenphoto-functions-from-outside-zenphoto/

Member
Member
daviding   2009-11-17, 14:03
#3

Acrylian, thanks for the pointer. That's definitely in the ballpark.

I may have found another way with TimThumb -- see http://www.binarymoon.co.uk/2009/07/a-brief-history-of-timthumb/ -- and will have to weight the merits and demerits of multiple caches.

Member
Member
daviding   2009-11-20, 06:10
#4

Acrylian, thanks for the pointer to i.php.

I've figured out that "a" is for album and "i" is for image, so the URI looks something like http://mydomain.com/zenphoto/zpcore/i.php?a=myalbum&i=myimage.JPG&w=475 .

I tried using TimThumb, but couldn't get it to work because it doesn't use URLs, but instead absolute directory addresses ... which I don't think that Wordpress likes in its HTML.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.