unintended resizing

See all posts Reply

unintended resizing new!
by Tim, 9 years, 9 months ago
original image: 370 w x 319 h

$handle->file_new_name_body 	= $hash;
$handle->image_convert 			= 'jpg';
$handle->file_new_name_ext 		= 'jpg';
$handle->image_resize 			= true;
$handle->image_x 				= 1024;
$handle->image_ratio_y 			= true;
$handle->file_overwrite 		= true;
$handle->image_ratio_no_zoom_in = true;
$handle->Process($data['posts_dir']);

new image 1024 x 833. I have image_ratio_no_zoom_in set, so why is it still resizing? This happens in both 0.32 and 0.33 dev.Reply
Re: unintended resizing new!
by colin, 9 years, 9 months ago
image_ratio_no_zoom_in is to be used in place of image_ratio_xxx. It is a shortcoming of the class.

So in your code, you should do something like this:
$handle->image_resize = true;
$handle->image_x = 1024;
$handle->image_y = 800;
$handle->image_ratio_no_zoom_in = true;
Reply
Re: unintended resizing new!
by Tim, 9 years, 9 months ago
Thank you! That was driving me nuts! :)Reply