Re: How do I get the offset result from "-trim"?

Bob Friesenhahn <[email protected]> Thu, 13 Aug 2020 11:28:01 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Thu, 13 Aug 2020, Adam Richter wrote:

> When I attempt to see the geometry that would result from "gm convert
> -trim", I always get a +0+0 offset.  In comparison, with ImageMagick I
> get non-zero offsets.  I think that this may be a bug in
> GraphicsMagick, but I want to ask on the help mailing list, in case
> there is some other more standard way to get the information using the
> command line (as opposed to writing something in the API).

This does feel like a bug to me.  I get a similar result here:

% gm convert covid-19.tif -fuzz 0.5 -trim -format '%O' info:-
+0+0

There are likely implications if/when the bug is fixed since it may 
influence the results of other algorithms.

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