problem generating thumbnail

See all posts See thread Reply

Re: problem generating thumbnail new!
by kryska, 12 years, 10 months ago
I get the thumbail x and y correct, but whit white spaces rigth and left...and cropped not like the first image...

I just want an image like the fist one, but diferent resizing: must be max y= 400Reply
Re: problem generating thumbnail new!
by colin, 12 years, 10 months ago
Check the log produced by the class, it will tell you exactly what is being done on the image.Reply
Re: problem generating thumbnail new!
by kryska, 12 years, 10 months ago
Solved!!!!

Thank you!

$srcx =	$handle->image_src_x;
$srcy = $handle->image_src_y;
$handle->image_precrop = array($y1, $srcx - $x2, $srcy - $y2, $x1);

This way, is correct.

Without these lines, the second time cropping, the image_src_x and image_src_y, what not like first time.Reply