Menu

#287 docs are wrong about `-algorithm` option of `gm compare` ?

v1.0_(example)
closed-fixed
None
5
2014-12-14
2014-12-06
No

The docs for "gm compare" ( http://www.graphicsmagick.org/compare.html ) include the following in the "Examples" section:

To create an annotated difference image use:
    compare -algorithm annotate -highlight-color purple -file diff.miff original.miff compare.miff

However, trying to use this example results in:
gm compare: Unrecognized option (-algorithm).

The same problem is also mentioned on https://github.com/aheckmann/gm/issues/213

I'm using GraphicsMagick 1.3.12 2010-03-08 Q8 (because of Ubuntu),
which AFAICT is from long after that docs page was last edited
(on Fri Aug 08 16:14:41 2008 in changeset 12257:6bd9b1f37f80 ).

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2014-12-07
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2014-12-07

    Sorry about that. The documentation was likely written while the utility command was still being developed and it fell out of sync with the code. The replacement for -algorithm is:

      -highlight-style style
                           pixel highlight style (assign, threshold, tint, xor)
    

    The documentation will be corrected with my next Mercurial commit (at which time I will close this bug).

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2014-12-14

    Fix is committed now.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2014-12-14
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB