Hi,
Just so everyone knows: cleaning up the code for AG is very high on my list of things to do when I have some free time since I’m not even sure if I can find how to change things like this
The short answer is that you can’t change the y-origin with any parameters. The longer answer is to look at the generateTN function in the inc.php file. My version is now a little different from the published one so I can’t give helpful line numbers but there are two lines like:
imagecopy($targetimg, $shrunk, 0, 0, $snipsize, 0, $tnwidth, $tnheight);
These generate the tn and use the $snipsize variable to determine how much gets cut off. The first two args are the dest and source image, then the x,y of the origin in the DEST image, then the origin in the SOURCE image, then the width and height.
Assuming you wanted to always keep the top of the image and remove the bottom you might want to just replace the $snipsize with 0 to set the origin to the top, unless its the bottom left - I really cant remember! If that gives you just the bottom part you could use ($snipsize * 2), since $snipsize is defined as half the amount to be cropped.
There are two blocks there, one is for cropping width, one for cropping height. I’m sure you’ll figure it out but let me know how it goes!
Ramsay