Page 1 of 1

Annotate errors - windows 7 x64

Posted: 2014-08-07T11:25:49-07:00
by PaulAThompson
I am using a command
convert "badlands.jpg" -pointsize 14 -mattecolor grey -background ^
grey -frame 3x3+0+3 -gravity South -splice 0x15 -frame 6x6+3+0 ^
-annotate +0+8 Testofannotate frame_montage.gif

which works fine.

However, if I add spaces and single-quotes, I get errors:

convert "badlands.jpg" -pointsize 14 -mattecolor grey -background ^
grey -frame 3x3+0+3 -gravity South -splice 0x15 -frame 6x6+3+0 ^
-annotate +0+8 'Test of annotate' frame_montage.gif

I get 'Test placed on the image, and errors in the log:

convert.exe: unable to open image 'of'': No such file or directory @ error/blob.c/OpenBlob/2658

I pretty much took this directly from the page http://www.imagemagick.org/Usage/crop/#frame
so it's odd that I get the error with the space. No space, no error.

In addition, the use of the @ char to use an external file does not work.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T11:34:12-07:00
by Bonzo
Try using "Test of annotate" instead.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T11:44:03-07:00
by PaulAThompson
OK, that worked. Is that always the case? Only " is a text quote?

The other thing that doesn't work is

-annotate +0+8 @testtext.txt

where testtext.txt has the text in it.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T12:41:45-07:00
by snibgo
"+0+0" isn't a valid argument for -annotate. Valid arguments would be "0" or "0x0". See http://www.imagemagick.org/script/comma ... p#annotate

The IM usage pages use Unix syntax. Windows uses double quotes where Unix uses single quotes.

The "@" method words for me. See Windows examples on my http://im.snibgo.com/snutf8.htm page.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T13:46:25-07:00
by Bonzo
"+0+0" isn't a valid argument for -annotate.
That is strange as I always use that format; it offsets the text from the -gravity position by that amount. Has something been changed?

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T14:45:17-07:00
by snibgo
I'm just going by the documentation at http://www.imagemagick.org/script/comma ... p#annotate

According to that, these are the valid options:

99
99x99
99x99+99+99

where 99 is any number, and "+" can be "-". Perhaps the code allows +99+99 and correctly processes it as 0x0+99+99. The documentation doesn't say that +99+99 is invalid, so my statement that it isn't a valid argument was too strong.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T15:03:17-07:00
by fmw42
I think Bonzo is correct. I use that also with no trouble in the past. I think the documentation needs fixing. When I get a few moments, I will verify it works and modify the documentation.

Re: Annotate errors - windows 7 x64

Posted: 2014-08-07T17:52:36-07:00
by fmw42
These two commands seem to work fine for me on IM 6.8.9.6 Q16 Mac OSX

Code: Select all

convert logo: -font Arial -pointsize 36 -fill black -gravity center -annotate +0+0 "TESTING" tmp1.png

Code: Select all

convert logo: -font Arial -pointsize 36 -fill black -gravity center -annotate -100+100 "TESTING" tmp2.png

I have modified the documentation. But it may take overnight to show.