Il venerdì 26 ottobre 2007, Alessandro Pasotti ha scritto:
> Hi, I configured MS 5.0 with AGG and I now have this error with the print
> function
>
> Fatal error: PasteImage function should only be used with GD images.
> in /srv/www/htdocs_ssl/vnlib/pmapper-dev/incphp/print/print.php on line 91
>
> I suspect it has something to do with using AGG as a rendering driver, is
> there any workaround for this ? (beside turning AGG off)
Well, I repond to myself...
Here is a workaround (but maybe is better to add a config.ini option to select
this format)
My main format is AGG
OUTPUTFORMAT
NAME jpeg
DRIVER "AGG/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
OUTPUTFORMAT
NAME jpeg2
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
Then in print.php (line 72 or similar)
// DEFINE SCALEBAR/REFERENCE-MAP IMG
$this->map->selectOutputFormat("jpeg2");
$sbarImg = $this->createScaleBar($printType, $imgDPI);
$refImg = $this->map->drawReferenceMap();
Then comment out
//$this->pmap_setImgFormat();
from pdf and html switch and in
/*
* Draw Scale Bar
***************************************/
function createScaleBar($printType, $imgDPI)
{
//$this->pmap_setImgFormat();
This works for me but it's an ugly quick fix.
--
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3: www.itopen.it
Linux User# 167502
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users