[Mapserver-users] Displaying grayscale jpeg

Eric Bridger eric at gomoos.org
Tue Jul 29 05:06:04 PDT 2003


I think that LibJPEG is required for JPEG support, at least in 3.6.
http://mapserver.gis.umn.edu/doc36/unix-install-howto.html

mapserv -v should report INPUT=JPEG.  If you don't want to recompile you
could convert world.jpg to world.png and see if that works.

Eric


On Tue, 2003-07-29 at 15:17, AMC Story wrote:
> Hi everyone,
> 
> I'm having trouble displaying a grayscale jpeg image as a background raster on 
> my maps.  I took it from the documentation that this should not require that 
> mapserv be compiled with an additional library....?  This is the relevant code 
> in my mapfile:
> 
> LAYER
>   NAME "background"
>   DATA "mapscript/data/world.jpg"
>   TYPE RASTER
>   STATUS DEFAULT
> END
> 
> but using status default (i.e. turning the layer on) causes my application to 
> crash.  One thing I thought it might be was that the map image is 600 x 290 
> pixels, whereas the jpeg is 600 x 288.  I thought that perhaps this wouldn't be 
> too serious, but could this be the reason the application is crashing?
> 
> Thanks,
> Ali
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the MapServer-users mailing list