Page 1 of 1

documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-08T12:08:00-07:00
by yecril71pl
I am reading the document ImageMagick: Command-line Options [1]:
The values Xdegrees and Ydegrees control the shears with respect to the , respectively, applied to the text
I beg your pardon? :shock:
Besides, it would be nice if ImageMagick actually recognised the syntax X°×Y°.
___
[1] [url]file:///usr/share/doc/packages/ImageMagick/www/command-line-options.html#annotate[/url]

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-08T12:11:49-07:00
by fmw42
XdegreesxYdegrees are just numbers. the "degrees" part is not specified. the function just assumes the values of X and Y are in degrees rather than radians or some other units. Documentation might be better if it said XxY where X and Y are in units of degrees. But it seems clear to me, nevertheless.

Do I misunderstand your question?

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-08T12:30:11-07:00
by yecril71pl
Did you read the quoted paragraph? Can you understand it?
Besides, the documented syntax does not work:

Code: Select all

convert 1.tiff -annotate 0 +710 +1570 SAD 1a.tiff
convert: unable to open image `+1570': /usr▒²©Ú64/Image`²©Úÿ @ error/blob.c/OpenBlob/2489.
convert: unable to open image `SAD': /usr▒²©Ú64/Image`²©Úÿ @ error/blob.c/OpenBlob/2489.
Also, note the rubbish displayed in the error messages.
The correct syntax seems to be:
-annotate XxY±tx±ty text
(with no spaces)
Furthermore, the image ../images/annotate.png embedded below the text is not present.

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-08T12:45:01-07:00
by magick
Try this:
  • convert 1.tiff -annotate 0x0+710+1570 SAD 1a.tiff

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-17T09:10:40-07:00
by yecril71pl
OTOH, the command

Code: Select all

convert null: -annotate 0 +710 +1570 SAD null:
does not do anything wrong:
convert: unable to open image `+1570': /usr/lib64/ImageMagick-6.6.1/modules-Q16/coders/null.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `SAD': /usr/lib64/ImageMagick-6.6.1/modules-Q16/coders/null.la @ error/blob.c/OpenBlob/2489.
But try this:

Code: Select all

convert logo: -annotate 0 +710 +1570 SAD null: |&  LANG=C iconv
and the message is screwed up:
convert: unable to open image `+1570': `iconv: illegal input sequence at position 40

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-17T10:42:58-07:00
by fmw42
geometry arguments (including those in annotate) MUST not have spaces in them!

see http://www.imagemagick.org/script/comma ... p#geometry

"The geometry argument might take any of the forms listed in the table below. These will described in more detail in the subsections following the table. The usual form is size[offset], meaning size is required and offset is optional. Occasionally, [size]offset is possible. In no cases are spaces permitted within the geometry argument."

Re: documentation for -annotate XdegreesxYdegrees text

Posted: 2011-02-18T00:26:32-07:00
by yecril71pl
I know the command line is wrong. However, it is not a justification for convert to spit out rubbish to standard error.

It seems, however, that the problem has been partially fixed in 6.6.5. However, from the output of 6.6.1 it seems the presumed format of the error message is library path @ source file, but the library does not come up in 6.6.5. This, however, may be due to the fact that I upgraded libtool to 2.4 (the one distributed with ImageMagick is old and buggy).

Reported downstream.