|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-18 13:17 UTC] iliaa@php.net
[2003-01-19 07:27 UTC] paolo at i-dome dot com
[2003-01-20 19:22 UTC] pajoye@php.net
[2003-01-22 09:14 UTC] paolo at i-dome dot com
[2003-02-27 10:17 UTC] iliaa@php.net
[2003-03-02 10:43 UTC] paolo at i-dome dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 15:00:02 2025 UTC |
This code work fine on PHP 4.2.3 compiled with gd2.0.4, but give a image without text with php 4.3 compiled with internal gd support. I have this problem only in the image resized and not with the original image: if($width==$isize[0]) //original size: this work { $im = ImageCreateFromPNG ("bottoni/".$tipo_bottone); } else // to resize: don't work { $im1 = ImageCreateFromPNG("bottoni/".$tipo_bottone); $im=ImageCreateTrueColor($width, $isize[1]); ImageCopy($im, im1,0,0,0,0,$margin_width,$isize[1]); ImageCopyResized($im, $im1, $margin_width, 0, $margin_width, 0, $width, $isize[1], round($isize[0]-($margin_width * 2),0), $isize[1]); ImageCopy($im, $im1,$margin_width+$width-1,0,$isize[0]-$margin_width,0,$margin_width,$isize[1]); ImageDestroy($im1); } ImageAlphaBlending($im, true); $tc = ImageColorAllocate ($im, $colors[$color][0], $colors[$color][1], $colors[$color][2]); imagettftext($im, $size, 0, $center, $margin_height, $tc, $currpath."/fonts/".$font,$testo); ImageAlphaBlending($im, false); header("Content-Type: image/png\n\n"); ImagePNG($im); Thank for support Paolo Morandi