Search the Community
Showing results for tags 'PNG image transparent'.
-
Hi there I'm having troubles with transparent PNGs looking pretty bad when scaled in PW. The following image has a transparent background: Original image: 59k Resized image: Quality 90 32k Resized image: Quality 95 130k Resized image: Quality 10 28k There are black shadows appearing around the edge of any transparent area that isn't fully black. This results in an unusable image, currently. It is happening on all transparent logos I'm uploading. The code I use is here... $logoOptions = array( 'quality' => 100, 'upscaling' => 0, 'cropping' => 0 ); $logoOut = "<img src='{$page->logo->size(180, 180, $logoOptions)->url}' width='180' height='180' />"; The quality setting makes no difference to the corrupting of the transparent edges. I have tried PNGs output from Illustrator and Photoshop to make sure it wan't to do with the original, and I have tried two different installations on a local and remote server, both on PHP 5.4. Is this a limitation with GD in PHP? Does anyone have any suggestions [other than convert your images to jpg ] ? Kind regards Nik