note 54193 deleted from function.imagefilltoborder by cmb
| From: | cmb@php.net | Date: | Sun, 04 Aug 2019 12:23:28 +0000 |
| Subject: | note 54193 deleted from function.imagefilltoborder by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211818@lists.php.net to get a copy of this message | ||
Note Submitter: php at corzoogle dot com
----
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