Reply to Resizing images with transparency

Resizing images with transparency new!
by Graham Ramsay, 16 years, 5 months ago
Hi,

Is it possible to resize a PNG with transparency and have the resized version preserve it's transparency? Currently the transparency is lost and replaced with white (or similar).

Here are the options I am using:
$handle->file_src_mime       = 'image/png'
$handle->file_new_name_body    = 'resized';
$handle->file_new_name_ext     = 'png';
$handle->image_resize        = true;
$handle->image_x            = 400;
$handle->image_y             = 400;
$handle->image_ratio          = true;
$handle->image_ratio_no_zoom_in = true;

Thanks,

Graham.

ps. It would be nice to be able to search the forums ;) (maybe I missed the link?)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