[Mapbender-dev] weldMaps2PNG, transparency issues (multiple adding of PNG to PDF) (UPDATE)

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Mon Jan 15 04:48:30 EST 2007


Marc Jansen schrieb:
> Hey List,
>
> As there seem to be no real issues with this, I suggest somebody with 
> SVN-writting access might add these lines (see below a copied message).
>
> Furthermore I'd like to suggest to use PHPs function imagedestroy 
> (e.g. http://de2.php.net/imagedestroy), to clean up memory after image 
> creation. I know that it's all done by PHP itself after script 
> execution stopped, but I think we shouldn't be to messy and free most 
> of the memory we occupated by ourselves ;-)
>
> This would mean changing this code:
>
> // old
> imagecopy($image, $img, 0, 0, 0, 0, $width, $height);
>
> To:
> // new
> imagecopy($image, $img, 0, 0, 0, 0, $width, $height);
> @imagedestroy($img);
>
>
> And the change of this line:
> // old
> imagepng($image,$filename);
>
> To:
> // old
> imagepng($image,$filename);
> imagedestroy($image);
>
> Any more opinions?
>
>
> -- Marc
Hi Marc,

I commited you changes and added them also to class 
class_weldLegend2PNG.php and class_weldOverview2PNG.php.

-- 

Astrid

----------------------------------

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Siemensstraße 8
 D-53121 Bonn

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.emde at wheregroup.com
 http://www.wheregroup.com

ACHTUNG: Die Firmen Geo-Consortium, CCGIS und KARTA.GO haben ihre Fusion 
als WhereGroup zum 1.1.2007 bekannt gegeben.
Daher ändern sich ab Januar 2007 die Email Adressen und Telefonnummern.

----------------------------------


More information about the Mapbender_dev mailing list