Use of command line label:@ syntax with Windows

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sja45uk
Posts: 1
Joined: 2011-05-25T00:59:43-07:00
Authentication code: 8675308

Use of command line label:@ syntax with Windows

Post by sja45uk »

At http://www.ict.griffith.edu.au/anthony/ ... ick6/text/ Antony uses label:@/etc/modt for one of the examples. I have translated the code as label:@modt.txt and created a local modt.txt file to hold the Message of The Day, but all I get is @modt.txt in the label_file.gif. I am using ImageMagick 6.6.2 under Windows 7 and the ImageMagick documentation seems to imply that ImageMagick will support Unix-like command line features under Windows. Please can someone explain what I am doing wrong and point me at any advice on translating ImageMagick examples for use with Windows. BTW I have already found that in Anthony's examples a single-quote must be changed to a double-quote.
Thanks Steve
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Re: Use of command line label:@ syntax with Windows

Post by whugemann »

The label syntax works just fine under Windows, too, see http://www.imagemagick.org/Usage/window ... r_encoding. Try also

Code: Select all

Convert test.png -pointsize %ps% -fill %color% -gravity %gravity% -annotate +0+0 @title.txt test_with_label.png
with %...% being some previous set environment variables. This works definitively; I use it daily.
Wolfgang Hugemann
Post Reply