Reply to Keeping image size and filling background with color till the size i want

Keeping image size and filling background with color till the size i want new!
by Milen, 15 years, 9 months ago
I want to make image 200x200 but to keep original image size and ratio if image width is small than 150px ( and height is small than 150px) and place image in the middle of 200x200 and fill space till 200 (TBLR) with color background.

I can't make it to keep original image size and ratio!
if ($handle->image_src_y <= 150) {
  $handle->image_resize = true;
  $handle->image_ratio_fill = true;
  $handle->image_convert = 'jpg';
  $handle->image_x = 200;
  $handle->image_background_color = '#FF00FF';
  $handle->Process('./pictures/');
}

Sry for my English!
ThxReply

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