not zoom in issue

See all posts Reply

not zoom in issue new!
by ChaN, 13 years, 10 months ago
require_once('lib/class.upload.php');
$src = 'images/1234.jpg';
$foo = new upload($src);
$foo->file_new_name_body = 'new';
$foo->image_resize = true;
$foo->image_x = 1000;
$foo->image_ratio_y = true;
$foo->image_ratio_no_zoom_in = true;
$foo->file_overwrite = true;
$foo->process('uploads/');

the code seems only work if you use image_ratio and declare both image_x and image_y,because in this case, the image still zoom out to 1000 pixel (the origin width pixel was 500)
is that right?Reply
Re: not zoom in issue new!
by colin, 13 years, 10 months ago