|
|
|
|
|
|
Re: GIF compression support in ImageMagick - Re-Post [message #41694 is a reply to message #41605] |
Tue, 09 November 2004 06:12  |
Lince.Lawrence
Messages: 4 Registered: November 2004
|
Junior Member |
|
|
Mark Hadfield <m.hadfield@niwa.co.nz> wrote in message news:<cmol6d$ipu$1@newsreader.mailgate.org>...
> I'm afraid you'll have to explain that question further. How do you mean
> "optimize" and "impart 16 colour, colour table"? By the latter doi you
> mean "16-colour colour table"? You do mean 16-colour, not 16-bit colour?
> Are you asking about ImageMagick here, or IDL?
I will explain...
We do "convert -antialias -transparent white -trim -depth 16 -colors
16 $1 $2" and we get... (in Image Magic)
==============================================
Image: si1.gif
Format: GIF (CompuServe graphics interchange format)
Geometry: 7x7
Class: PseudoClass
Type: grayscale with transparency
Depth: 8 bits-per-pixel component
Colors: 16
0: ( 0, 0, 0) opaque
1: ( 4369, 4369, 4369) #111111
2: ( 8738, 8738, 8738) #222222
3: (13107,13107,13107) grey20
4: (17476,17476,17476) #444444
5: (21845,21845,21845) #555555
6: (30583,30583,30583) #777777
7: (34952,34952,34952) #888888
8: (43690,43690,43690) #aaaaaa
9: (48059,48059,48059) #bbbbbb
10: (56797,56797,56797) #dddddd
11: (61166,61166,61166) #eeeeee
12: (65535,65535,65535) white
13: ( 0, 0, 0) opaque
14: ( 0, 0, 0) opaque
15: ( 0, 0, 0) opaque
Filesize: 173b
Interlace: None
Background Color: white
Border Color: #dfdfdf
Matte Color: grey74
Page geometry: 7x7+0+0
Compression: LZW
comment: Image generated by GNU Ghostscript (device=pnmraw)
signature: 344c27d208a7f8792078b3c8e5b568e17387b4dbee3489f3173b0f5b57dd 584c
Tainted: False
User Time: 0.0u
Elapsed Time: 0:01
==============================================
But.. we want...
==============================================
Image: si1finished.gif
Format: GIF (CompuServe graphics interchange format)
Geometry: 9x7
Class: PseudoClass
Type: palette with transparency
Depth: 8 bits-per-pixel component
Colors: 16
0: ( 0, 0, 0) opaque
1: ( 8224, 8224, 8224) #202020
2: (24415,24415,24415) #5f5f5f
3: (42148,42148,42148) #a4a4a4
4: (53970,53970,53970) #d2d2d2
5: (59110,59110,59110) #e6e6e6
6: (63479,63479,63479) grey97
7: (65535,65535,65535) white
8: (32896,32896,32896) #808080
9: (65535, 0, 0) red
10: ( 0,65535, 0) #00ff00
11: (65535,65535, 0) yellow
12: ( 0, 0,65535) blue
13: (65535, 0,65535) #ff00ff
14: ( 0,65535,65535) cyan
15: (65535,65535,65535) white
Filesize: 170b
Interlace: None
Background Color: opaque
Border Color: #dfdfdf
Matte Color: grey74
Page geometry: 9x7+0+0
Compression: LZW
comment: Image generated by GNU Ghostscript (device=pnmraw)
signature: e02bdca57b1481410dd349058fa9d3d150e8ee97c714a1eaed51b0f7699a 79d4
Tainted: False
User Time: 0.0u
Elapsed Time: 0:01
==============================================
This result is obtained by another batch process in GraphicConverter
after the comand-line batch in Magic. Will I get this in a single
step?
What change should I make in the command. Please help
Thanks,
Lince M Lawrence
|
|
|