[mapserver-users] nightly build: problem with mapscript
Lowell.Filak
lfilak at medinaco.org
Tue Apr 16 04:40:11 PDT 2002
It appears that prepareImage now creates an imageObj (as do all the draw
methods) as opposed to a gdImagePtr. Try the following change to your
code:
$img->saveImage('/tmp/example.gif', $mapscript::MS_GIF,
$map->{transparent}, $map->{interlace}, 0);
Lowell F.
On 14 Apr 2002, Markus Spring wrote:
> Hi list,
>
> the nightly build of April 14 returns the following error:
>
> Type error in argument 1 of msSaveImage. Expected gdImagePtrPtr. at ms.pl line 22.
>
> running this code (fragment)
>
> my $img = $map->prepareImage();
> ...
> mapscript::msSaveImage($img, '/tmp/example.gif', 1, $map->{transparent}, $map->{interlace}, 95);
>
> mapscript was built with these options (and a gif enabled gd):
>
> cc -c -I/build/server/mapserver_dev -I/build/server/mapserver_dev/../gd-1.8.4 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.1/i586-linux/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c
>
> Anything wrong with this code? Any help will be appreciated
>
> Markus
>
More information about the MapServer-users
mailing list