|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-09 00:59 UTC] iliaa@php.net
[2007-01-09 01:47 UTC] pajoye@php.net
[2007-01-10 09:31 UTC] alex at gateway-productions dot com
[2007-01-10 09:33 UTC] alex at gateway-productions dot com
[2007-01-10 09:39 UTC] alex at gateway-productions dot com
[2007-01-10 12:46 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 13:00:01 2025 UTC |
Description: ------------ imagecopyresampled() returns a blank resized image with alpha not the source resized with alpha Reproduce code: --------------- $im = ImageCreateFromPNG($sourcefile); $im_dest = imagecreatetruecolor ($sourcefile_new_width, $sourcefile_new_height); imagealphablending($im_dest, false); imagecopyresampled($im_dest, $im, 0, 0, 0, 0, $sourcefile_width, $sourcefile_height, $sourcefile_new_width, $sourcefile_new_height); imagesavealpha($im_dest, true); imagepng($im_dest, $destfile); imagedestroy($im_dest); Expected result: ---------------- resizing actuall source png while keeping transparency and saving file Actual result: -------------- returns a blank resized image with alpha not the source resized with alpha