|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-24 17:39 UTC] andy@php.net
[2001-07-24 21:43 UTC] design at barma dot lviv dot ua
[2001-07-24 21:45 UTC] andy@php.net
[2001-07-25 03:47 UTC] design at barma dot lviv dot ua
[2001-08-06 08:34 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
i have problem with create small copy of PNG transparent images: Windows 98 apache 1.3.20 php 4.0.6 <? Header("Content-type: image/png"); $s = GetImageSize($rimg); if ($s[0]>$s[1]) $z = $s[0]/60; else $z = $s[1]/60; $x = (int)($s[0]/$z); $y = (int)($s[1]/$z); $dst_img = ImageCreate($x,$y); $src_img = ImageCreateFromPNG("../img/test.png"); $colT = ImageColorAllocate($dst_img,0,255,0); ImageFill($dst_img,0,0,$colT); ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$s[0],$s[1]); ImageColorTransparent($dst_img,$colT); ImagePNG($dst_img); ImageDestroy($src_img); ImageDestroy($dst_img); ?> and i have broken fullcolored rectangle BUT - with php 4.0.5 work all best