[mapserver-users] Manipulating map image with imagemagick

Paul Ramsey pramsey at refractions.net
Fri Jan 11 14:08:35 EST 2002


#!/bin/csh
echo "Content-type: image/png"
echo ""
lynx -dump
"http://mapserver.refractions.net/cgi-bin/mapserv?${QUERY_STRING}" |
convert -flip - png:-

Here's how I did it...

Stephen Woodbridge wrote:
> 
> Tyler,
> 
> You need to write a Perl cgi script which can either use mapscript or
> just make CGI calls to mapserver. When you get the name of the image
> file back, you can have Perl call imagemagick to rotate the image and
> pass the new image to the browser.
> 
> I know this is thin on details, but it's a high level strategy that
> would allow you to do this.
> 
> -Steve
> 
> Tyler Mitchell wrote:
> >
> > Anyone currently manipulating their mapserver output with imagemagick?
> > I'd like to figure a way to pass the final map image to a perl script
> > (which will run imagemagick manipulation routines) and then have my
> > mapserver page display a different image.  But I'm not quite sure whether I
> > should get into mapscript, php, javascript or what?

-- 
      __
     /
     | Paul Ramsey
     | Refractions Research
     | Email: pramsey at refractions.net
     | Phone: (250) 885-0632
     \_



More information about the mapserver-users mailing list