[Mapserver-users] TIF colors too dark

Lowell Filak lfilak@medinaco.org
Mon, 12 May 2003 13:18:37 -0400


Not that it applies in this case, however one thing we have seen in the past is an image which is reported to be 8-bit but actually has reserved space for more than 256 colors.
If you look further down on the ImageMagick output you should see the actual pallette and it may provide a clue as to what is happening (if using the gui), if using the command line be sure to specify the 'verbose' option.
HTH
Lowell F.

The following message was sent by "Matt Doggett" <mdoggett@coas.oregonstate.edu> on Mon, 12 May 2003 09:45:03 -0700.

> Well, when I pull up the original .tif image, ImageMagick reports it as
> using a 8-bit color palette. So, I would guess that the file is an 8 bit
> image.  Also, when selecting the colors for the original tif, I made
> sure to use "web safe" colors (which I'm guessing would be 8-bit
> compatible).
> 
> matt
> 
> > -----Original Message-----
> > From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-
> > admin@lists.gis.umn.edu] On Behalf Of Benjamin Wragg
> > Sent: Thursday, May 08, 2003 2:53 PM
> > To: mdoggett@coas.oregonstate.edu; mapserver-users@lists.gis.umn.edu
> > Subject: RE: [Mapserver-users] TIF colors too dark
> > 
> > Hi Matt,
> > 
> > I had something similar with a 24 bit image that Mapserver was
> > converting to 8 bit. Are you using a 24 bit image? I ended up
> > resampeling the image down to 8 bit for now. I'll use the 24 bit
> version
> > when it's supported in Mapserver.
> > 
> > Cheers,
> > 
> > Benjamin
> > 
> > -----Original Message-----
> > From: mapserver-users-admin@lists.gis.umn.edu
> > [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Matt
> > Doggett
> > Sent: Friday, 9 May 2003 4:07 AM
> > To: 'Randy James'
> > Cc: mapserver-users@lists.gis.umn.edu
> > Subject: RE: [Mapserver-users] TIF colors too dark
> > 
> > 
> > Not exactly sure what you mean by "outputformat" options. I tried
> > changing the IMAGETYPE (PNG|JPG), IMAGEQUALITY (100), and INTERLACE
> > (ON|OFF) options (if that's what you meant) but none of those makes
> any
> > difference. Also, when creating an image using the shp2img utility, I
> > get the same (dark) results.
> > 
> > md
> > 
> > > -----Original Message-----
> > > From: Randy James [mailto:rjames57@yahoo.com]
> > > Sent: Thursday, May 08, 2003 10:30 AM
> > > To: mdoggett@coas.oregonstate.edu
> > > Cc: mapserver-users@lists.gis.umn.edu
> > > Subject: Re: [Mapserver-users] TIF colors too dark
> > >
> > > Hi
> > >
> > > Try modifying the outputformat options in your map file.
> > >
> > > Randy
> > >
> > > --- Matt Doggett <mdoggett@coas.oregonstate.edu> wrote:
> > > > I have a georeferenced TIF raster that looks great in my image
> > > > editing/display program (like ImageMagick or MS
> > > > PhotoEditor) but when
> > > > mapserver displays the raster, the colors are much darker
> > > > than they
> > > > should be.  Any thoughts as to what may be going on and
> > > > how I might fix
> > > > it?
> > > >
> > > > -Matt
> > > > (RedHat8.0, Apache2.0, Mapserver 3.6.4, Php4.2.3)
> > > >
> > > > Matt Doggett
> > > > Spatial Climate Analysis Service
> > > > Oregon State University
> > > > 316 Strand Ag Hall
> > > > Corvallis, OR 97331
> > > > (541)737-9153
> > > > mdoggett@coas.oregonstate.edu
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> > 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users