hi, you can send me your rgb.png, I'll have a look, but gdal does "seem" to find an rgba file, as shown by the quadruples printed out ( eg: 17,12,12,255)
cheers -- Thomas Bonfort Camptocamp France SAS http://www.camptocamp.com On Thu, Apr 24, 2008 at 3:29 PM, Léveillé, James <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I'm trying to use my own palette for AGG as described here by Thomas : > http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td14645869.html > > As explained in the article, I'm using a typical PNG 24 bits image (produced > in RGBA mode - 4 bands). > But from this image, I'm not able to produce a 8 bits PNG image with the > ALPHA, only in RGB with 3 channels - see the GDALINFO below. > I need this 8 bits image to generate my palette. > > gdalinfo rgb.png > Driver: PNG/Portable Network Graphics > Size is 1203, 813 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 813.0) > Upper Right ( 1203.0, 0.0) > Lower Right ( 1203.0, 813.0) > Center ( 601.5, 406.5) > Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 17,12,12,255 > 1: 27,101,44,255 > 2: 0,132,0,255 > 3: 19,130,16,255 > ... > > How can I generate a 8 bits RGBA image from the original 24 bits image ? > > Regards. > > > > JAMES > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users