Hi,

I would like to convert a Tiff image from Palette to Grayscale. The image has following structure (gdalinfo):

Driver: GTiff/GeoTIFF
Size is 13779, 9449
Coordinate System is `'
Origin = (567499.841250,146000.158750)
Pixel Size = (0.31750000,-0.31750000)
Metadata:
  TIFFTAG_SOFTWARE=IrfanView
  TIFFTAG_XRESOLUTION=400
  TIFFTAG_YRESOLUTION=400
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
Corner Coordinates:
Upper Left  (  567499.841,  146000.159)
Lower Left  (  567499.841,  143000.101)
Upper Right (  571874.674,  146000.159)
Lower Right (  571874.674,  143000.101)
Center      (  569687.258,  144500.130)
Band 1 Block=13779x4 Type=Byte, ColorInterp=Palette
  Metadata:
    NBITS=1
  Color Table (RGB with 2 entries)
    0: 255,255,255,255
    1: 0,0,0,255

and i would like to process it with "convert" to get following format:

Driver: GTiff/GeoTIFF
Size is 13779, 9449
Coordinate System is `'
Origin = (567499.841250,146000.158750)
Pixel Size = (0.31750000,-0.31750000)
Metadata:
  TIFFTAG_SOFTWARE=Adobe Photoshop CS2 Windows
  TIFFTAG_DATETIME=2006:11:28 19:03:48
  TIFFTAG_XRESOLUTION=400
  TIFFTAG_YRESOLUTION=400
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
Corner Coordinates:
Upper Left  (  567499.841,  146000.159)
Lower Left  (  567499.841,  143000.101)
Upper Right (  571874.674,  146000.159)
Lower Right (  571874.674,  143000.101)
Center      (  569687.258,  144500.130)
Band 1 Block=13779x19 Type=Byte, ColorInterp=Gray


I've tried many options with convert, but it doesn't work. Could you help me? I'd like to process my images with imagemagick and not photoshop. ,-)

Best regards,

Emmanuel BELO
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to