On Mon, Jan 19, 2009 at 10:18 AM, Juha Jäykkä <juo...@utu.fi> wrote: >> It seems they are some work on gravity upstream. Could you please retest >> with experimental version? > > Still buggy. Perhaps there's a misunderstanding here as to what -gravity > Center along with -geometry should do in the first place. The docs are > missing that piece of info: > > Man for -gravity says: "See -geometry for details of how the -gravity option > interacts with the x and y parameters of a geometry specification." > > The *whole* man entry for -geometry, however is, > > preferred size and location of the image. > > 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. Similarly, > negative y is measured between the bottom edges. The offsets are not affected > by %; they are always measured in pixels. > > > Which does not even mention -gravity let alone explain what -gravity's > explanation promises it should. > > I take it that "-gravity Center" would try to place (gravitate) the following > object (the image to convert) towards the center of the target geometry (PS > canvas in this case). Instead, it places the image only partially on the > page.
Could you try to send a simple test case please ? like a circle where you use gravity, the current result and the expected result ? It will be really helpfull :) And could you will a wishlist bug about landscape :) Or should I ? Morevoer could you check web doc ?According to web doc (http://www.imagemagick.org/script/command-line-options.php#gravity and http://www.imagemagick.org/script/command-line-processing.php#geometry particularly last paragraph): -gravity type Sets the current gravity suggestion for various other settings and options. Choices include: NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast. Use -list gravity to get a complete list of -gravity settings available in your ImageMagick installation. The direction you choose specifies where to position text or subimages. For example, a gravity of Center forces the text to be centered within the image. By default, the image gravity is NorthWest. See -draw for more details about graphic primitives. Only the text primitive of -draw affected by the -gravity option. The -gravity option is also used in concert with the -geometry setting and other settings or options that take geometry as an argument, such as the -crop option. If a -gravity setting occurs before another option or setting having a geometry argument that specifies an offset, the offset is usually applied to the point within the image suggested by the -gravity argument. Thus, in the following command, for example, suppose the file image.png has dimensions 200x100. The offset specified by the argument to -region is (-40,+20). The argument to -gravity is Center, which suggests the midpoint of the image, at the point (100,50). The offset (-40,20) is applied to that point, giving (100-40,50+20)=(60,70), so the specified 10x10 region is located at that point. (In addition, the -gravity affects the region itself, which will be centered at the pixel coordinate (60,70). (See Image Geometry for complete details about the geometry argument.) convert image.png -gravity Center -region 10x10-40+20 -negate output.png When used as an option to composite, -gravity gives the direction that the image gravitates within the composite. When used as an option to montage, -gravity gives the direction that an image gravitates within a tile. The default gravity is Center for this purpose. Regards Bastien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org