#910652 graphicsmagick-imagemagick-compat: Doesn't ship a compare tool

#910652#3
Date:
2018-10-09 10:19:11 UTC
From:
To:
Dear maintainer,

this package has a Provides:imagemagick, but it doesn't ship a
/usr/bin/compare like imagemagick does; therefore, it's not a full
alternative to it.

I'm adding a Build-Conflicts:graphicsmagick-imagemagick-compat to
diffoscope to prevent resolvers from picking up this package, as it
would cause tests to be skipped.

#910652#8
Date:
2018-10-09 13:45:44 UTC
From:
To:
GraphicsMagick does provide a 'compare' command which offers some
operation modes similar to ImageMagick's compare (-colorspace, -debug,
-define, -density, -depth, -highlight-color, -interlace, -limit, 
-metric, -monitor, -sampling-factor, -size, -type, -verbose) although 
it was never designed to be an exact replacement and is not derived
from the ImageMagick version since it was implemented after the fork
based on my own imagination.  From looking at the GraphicsMagick
Makefile, it appears that does install a 'compare' command so the lack
of 'compare' must be an artifact of Debian packaging.

If the Debian packaging was updated to include 'compare' would this
satisfy your expectations?

That said, installing commands with generic names like 'convert' and
'compare' has always seemed problematic to me since it could conflict
with other software.

Bob

#910652#11
Date:
2018-10-09 14:13:40 UTC
From:
To:
Ok, I know nothing about that...

Not sure, I'd probably have to check if for my own use case the output
is the same.  Most likely it would be.

I kinda agree, yes.  However at this point in time way too much stuff
started to rely on imagemagick tools being called like that, imho.

#910652#16
Date:
2018-10-09 17:21:30 UTC
From:
To:
On Tue, Oct 9, 2018 at 4:00 PM Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote:
 Just checked, it seems it never contained the 'compare' command - not
in Wheezy, Jessie nor in Stretch at least.
 Actually it should be an alias, right? Checked magick/command.c and
its command_names[] but without luck.
 Couldn't find the mentioned Makefile - only magick/compare.c exists
with methods for GraphicsMagick itself.
 Bob, may you check your GraphicsMagick install? Does it really
install a 'compare' binary?

Just for the record, the 'stream' binary also seems to be missing in GM.

Thanks,
Laszlo/GCS

#910652#23
Date:
2018-10-09 17:52:36 UTC
From:
To:
A quick check reveals that a 'compare' command is installed yet I
think that it will not actually work due to "compare" not being listed
in command_names[].  This feels like a bug to me.

The question remains as to if GraphicsMagick's compare is similar
enough to satisfy common usages.

Yes, and there is no plan to implement such a thing.

Bob

#910652#28
Date:
2018-10-10 07:02:40 UTC
From:
To:
On Tue, Oct 9, 2018 at 7:57 PM Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote:
[...]
 This alone can be the reason it's not installed. Can't check it now,
I'm not near my Linux box ATM.
 Will try to test some cases when I'm at home.

Regards,
Laszlo/GCS

#910652#35
Date:
2026-03-07 12:18:18 UTC
From:
To:
Hi,


This package is no longer build by src:graphicsmagick so let's close
this bug.

Paul