Hello gents,
I'm trying desperately to find out how to use Zenphotos crop features rather manually.
The reason is, I've built a Wordpress plugin (http://noscope.com/journal/2009/01/zenphoto-shorttags-wordpress-plugin) which allows easy embed in any size of images in your gallery. The syntax is this:
[zenphoto src="image.jpg" album="album/subalbum" width="500"]
This all works fine and dandy, and it's really just a wrapper for i.php, for which the syntax is:
path/to/i.php?i=filename.jpg&a=album&s=size&w=width&h=height&cw=cropwidth&ch=cropheight&cx=cropx&cy=cropy
These parameters are documented in i.php as:
That brings me to my problem.
I can't for the life of me figure out which parameters to fill out, and which parameters not to fill out, to get the crop I want.
The situation is: I have a 625x124px image. That's the full size.
My blog has a maximum width of 600px in the width. So I want my image to fit. But I want it cropped, not scaled.
So, I want to fill in parameters so that I get a 600x124px image, with the 25 extra pixels chopped off the right side of the image. I do not want the image scaled either down or up.
So far I have:
i.php?&a=various&i=Gengo.jpg&w=600&cw=600&ch=124&cx=0&cy=0
but this seemingly creates a very much zoomed, upscaled crop. Very odd.
Any help is very much appreciated.
I think I may have solved it.
http://noscope.com/photostream/zp-core/i.php?&a=various&i=Gengo.jpg&w=600&cw=600&ch=100&cx=1&cy=1
The above works.