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.
Annotate errors - windows 7 x64
-
- Posts: 26
- Joined: 2012-06-23T10:50:36-07:00
- Authentication code: 13
Annotate errors - windows 7 x64
Last edited by PaulAThompson on 2014-08-07T11:41:51-07:00, edited 1 time in total.
Re: Annotate errors - windows 7 x64
Try using "Test of annotate" instead.
-
- Posts: 26
- Joined: 2012-06-23T10:50:36-07:00
- Authentication code: 13
Re: Annotate errors - windows 7 x64
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.
The other thing that doesn't work is
-annotate +0+8 @testtext.txt
where testtext.txt has the text in it.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Annotate errors - windows 7 x64
"+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.
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.
snibgo's IM pages: im.snibgo.com
Re: Annotate errors - windows 7 x64
That is strange as I always use that format; it offsets the text from the -gravity position by that amount. Has something been changed?"+0+0" isn't a valid argument for -annotate.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Annotate errors - windows 7 x64
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.
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.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Annotate errors - windows 7 x64
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Annotate errors - windows 7 x64
These two commands seem to work fine for me on IM 6.8.9.6 Q16 Mac OSX
I have modified the documentation. But it may take overnight to show.
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.