[solved] Add negative negative offset to geometry option

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

[solved] Add negative negative offset to geometry option

Post by broucaries »

From debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462759

Some x11 geometry formats for specifying window geometry (i.e. for the -geometry switch) are not supported, for example one cnanot offset
the top left corner negatively:

animage -geometry +-4+-4 xxx.gif
animate: invalid argument for option `+-4+-4': -geometry.

or positively from the lower right:

animate -geometry --4--4 xxx.gif
animate: invalid argument for option `--4--4': -geometry.


If you decide that it is a wont't fix, please correct the wording of the geometry option documentation, that is misleading, for user

<< -geometry widthxheight{+-}x{+-}y

If the x is negative, the offset is measured leftward from the right edge of
the screen to the right edge of the image being displayed.>>

This still claims that x can be negative (which would make sense, as X
geometry specifications allow that, too).
This is likely a documentation bug, though, as was meant is that
"{+-}x" is "negative", even when x is positive.


Regards

Bastien
Last edited by broucaries on 2008-12-23T13:41:40-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Add negative negative offset to geometry option

Post by magick »

We can reproduce this problem and have a patch. Look for it when ImageMagick 6.4.8-0 is released.
Post Reply