Friday 17 June 2011 8:22:21 am
This message gave me idea http://stackoverflow.com/questions/32243/can-png-image-transparency-be-preserved-when-using-phps-gdlib-imagecopyresampled
And i made small changes in ezimagegdhandler.php: i added imagealphablending( $temporaryImageObject, false ); imagesavealpha( $temporaryImageObject, true );
after $temporaryImageObject = eZImageGDHandler::imageCreate( $destinationWidth, $destinationHeight, eZImageGDHandler::isImageTrueColor( $imageObject, $sourceMimeData ) );
It saves PNG transparency before resizing. I made patch, if someone is interested. http://issues.ez.no/IssueView.php?Id=15640&activeItem=1
{set-block scope=root variable=cache_ttl}0{/set-block}
|