"Christina Williams" on  wrote...
| One correction to my last message.
|
| a >file * shows that the image made from version 5 is a png, 8 bit
| grayscale, whereas what the version 6 is making is an 8 bit colormap. I'm
| not sure why this is coming out when I specified -depth 8 gray:filename,
| which should make sure its a grayscale right?
|
| Is the only way to fix this problem to specify -type GrayScale? It seems
| like I could lose information by first making a colormap and then
| converting that into a grayscale instead of just making the grayscale to
| begin with.

So make the image greyscale first, using  -colorspace gray.

-colorscape    convert the image so it is stored in this colorspace
               note however that    Gray  =>  Grayscale RGB
               (each red,green and blue channel has the same value)
-type          set the input and output type of image
-quantize      colorspace in which to quantize images
               using -colors  or automatically for GIF or PNG8

A greyscale pallette PNG should thus be generated using

    -type grayscale png8:image.png

However "-type" only defines (or should define) the final image type as
such it may be better to also set  "-quantize gray"   so that the
automatic  "-colors 256" that IM uses to generate a limited color pallette.

  convert image ......
    -colorscape gray -quantize gray -colors 256
    -type grayscale png8:image.png

What works and what don't work may indicate bugs or refinements that
should be reported to developers.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
        ____             _ _      ____             _         _   
       |  _ \  ___  _ __( ) |_   |  _ \ __ _ _ __ (_) ___   | |  
       | | | |/ _ \| '_ \/| __|  | |_) / _` | '_ \| |/ __|  | |  
       | |_| | (_) | | | || |_   |  __/ (_| | | | | | (__   |_|  
       |____/ \___/|_| |_| \__|  |_|   \__,_|_| |_|_|\___|  (_)  
                                        "Hitchhikers Guide to the Galaxy"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to