note 54193 added to function.imagefilltoborder

From: Date: Mon, 27 Jun 2005 07:08:47 +0000
Subject: note 54193 added to function.imagefilltoborder
Groups: php.notes 
Request: Send a blank email to php-notes+get-90993@lists.php.net to get a copy of this message
pritm (.a.t.) mail (.d.0.t.) ru, your jpg black areas aren't entirely black, look *real* closely at it! so the fill will "seep through". the solution is simple, use a lossless background image format. replace this line.. <? $im = imagecreatefrompng ('map-back.png'); ?> try it with this version of your image.. http://corz.org/public/images/demo/map-back.png (the colours may be slightly different, just a quick conversion in my regular image viewer) as you can see, it works perfectly.. http://corz.org/public/images/demo/filled.jpg ;o) (or ---- Manual Page -- http://www.php.net/manual/en/function.imagefilltoborder.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54193 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54193&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54193&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90993) next »