Reply to not zoom in issue

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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important