[magick-users] Reducing output range

Illtud Daniel illtud.daniel at llgc.org.uk
Mon Jan 22 04:38:50 CST 2007


Anthony Thyssen wrote:

> Illtud Daniel on  wrote...

> | convert -fx 'r/8' -depth 8 image.pgm out.pgm
> | 
> | gives me the same image but with the levels squashed into 0-31.
> 
> but the maxrgb value for the image will still be 256!
> only the vlaue will be in 0-31 range!

Yes. This is what I want. Or rather, this is what the dyesub
card printer I'm using wants.

Gabe pointed out that the Fx operator returns another Image::Magick
object, it doesn't operate on the object given. I don't think that's
very obvious from the documentation, to be honest.

Anyway, I've got what I need now, thank you. Once again ImageMagick
proves itself to be the swiss army knife of image manipulation. Much
appreciated.

-- 
Illtud Daniel                                 illtud.daniel at llgc.org.uk
Uwch Ddadansoddwr Systemau                       Senior Systems Analyst
Llyfrgell Genedlaethol Cymru                  National Library of Wales
Yn siarad drosof fy hun, nid LlGC   -  Speaking personally, not for NLW


More information about the Magick-users mailing list