Re: PGM Colourisation

Bob Friesenhahn <[email protected]> Tue, 15 Dec 2020 07:52:31 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Tue, 15 Dec 2020, Stuart McDonagh via Graphicsmagick-help wrote:

> Bob
>
> Do you wanna know what the really funny thing is?
>
> Last night, I deleted the whole line that I used to call GraphicsMagick, typed it out again and it worked flawlessly. :)

Regardless, there was indeed a subtle implementation bug that I 
reproduced with an image here.  The bug depends on the nature of the 
input image.  Except for the input image, I copied the arguments as 
they were delivered via your email.

It is expensive to detect if a DirectClass (no colormap) image is 
grayscale or bilevel so there are flags associated with the image to 
remember its properties and these flags need to be re-evaluated if the 
image is modified.  So now there is support for these flags.

> I was trying to escape single quotes around the hex values, which turned out wasn't necessary!
> The presence of unexpected characters was likely throwing off the parser.

Then the actual command you executed was different than what was in 
your email (or SourceForge automatically corrected it).

> But I have taken your advice on board and gotten rid of the "-depth 8", so it wasn't all in vain.
> Thanks very much for your help.

Yes, that is not necessary with GraphicsMagick unless the original 
image was deeper.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt