note 100507 added to function.imagecreatefrompng

From: Date: Wed, 20 Oct 2010 11:52:22 +0000
Subject: note 100507 added to function.imagecreatefrompng
Groups: php.notes 
Request: Send a blank email to php-notes+get-173304@lists.php.net to get a copy of this message
I make custom counter. In Php 4.x this is not problem. In 5.2.x and 5.3.x it is'nt work! //white font is true in PHP 4.x //and dont true in PHP 5.x (black!) //image png - http://www.sovencon.ru/count.png //test.php - http://www.sovencon.ru/test.php //sample - http://www.sovencon.ru/counter.php <? $im=ImageCreateFromPng("count.png"); $str1=substr("000000000",1,9-strlen("".$count))."$count"; $color=imagecolorallocate($im,255,255,255); imagestring($im, 5, 19, 52,$str1, $color); imagestring($im, 5, 18, 51,$str1, $color); Header("Content-type: image/png"); ImagePng($im); ImageDestroy($im); ?> P.S. And in GIF - is bad too, in jpeg - is very good (white is white, but PNG is more productive in bytes) P.S.S. I am waiting right GD for Free BSD and Ubuntu =) ---- Server IP: 195.54.192.44 Probable Submitter: 127.0.0.1 ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefrompng.php Edit -- https://master.php.net/note/edit/100507 Del: integrated -- https://master.php.net/note/delete/100507/integrated Del: useless -- https://master.php.net/note/delete/100507/useless Del: bad code -- https://master.php.net/note/delete/100507/bad+code Del: spam -- https://master.php.net/note/delete/100507/spam Del: non-english -- https://master.php.net/note/delete/100507/non-english Del: in docs -- https://master.php.net/note/delete/100507/in+docs Del: other reasons-- https://master.php.net/note/delete/100507 Reject -- https://master.php.net/note/reject/100507 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173304) next »