Reply to Problems on resizing images

Problems on resizing images new!
by Martina, 9 years, 6 months ago
hi,

i want to load an image and save it in diferent sizes.

the resize works fine if the target image is smaller then the original.

resizing the image bigger then the original doesn't work - it always have the size from the original loaded image.

$a_imagesize = array (
"620x320" => array ("x" => 620, "y" => 320),
"460x307" => array ("x" => 460, "y" => 307),
"300x199" => array ("x" => 300, "y" => 199),
"230x153" => array ("x" => 230, "y" => 153)
);

foreach ($a_imagesize as $key => $value) {
  $handle->file_new_name_body = $key."_imagename";        
  $handle->image_resize = true;
  $handle->image_ratio_crop = true;    
  $handle->image_x = $value['x'];            
  $handle->image_y = $value['y'];            
  $handle->image_ratio_no_zoom_in = true;
  $handle->Process($filedir); 				
}

if i load a image with original size 425x282 pixel i get folowing images:
- 230x153_imagename (SIZE: 230x153 = OK)
- 300x199_imagename (SIZE: 300x199 = OK)
- 460x307_imagename (SIZE: 425x282 = FALSE)
- 620x320_imagename (SIZE: 425x282 = FALSE)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