Hi,
Thanks for your excellent plugin.
I want get data for work image with the phpThumbFactory plugin in php but I don't exactly cut the correct value
Perhaps we need make a conversion...?
My code :
// getdata : OK
$x = $_POST['img_x'];
$y = $_POST['img_y'];
$w = $_POST['img_w'];
$h = $_POST['img_h'];
$scale = $_POST['img_scale'];
$angle = $_POST['img_angle'];
// Create the object PhpThumbFactory
try
{
$thumb = PhpThumbFactory::create($UPLOAD_PHOTOS_LIVRES.$nom_photo);
}
catch (Exception $e)
{
// handle error here however you'd like
echo "Erreur : <br />".$e;
}
// Works the picture
$thumb->rotateImageNDegrees($angle);//ok
$thumb->crop($x, $y, $w , $h);
$thumb->resizePercent($scale*100); // ok
$thumb->save($UPLOAD_PHOTOS_LIVRES.$nom_photo);
2. An another question :
In guillotine init, the width and height make the size of the image to crop but when it's a limit zoomout and my pics it's bad cropped.
In fact, i can't see the full image.
Can i defined the limit zoom out ? For more scale ?
Thanks for your help.
W-prog.com