differences between some options with - and :

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
stifani
Posts: 1
Joined: 2012-11-04T06:15:30-07:00
Authentication code: 67789

differences between some options with - and :

Post by stifani »

hello there.

just want to know differences and some example into using <-options> and <options:> with convert
for example using -label and label: or other options
i'm using windows

i think, in this case, that -label requires an existing image to be applied to. and label: can draw text into a new image, but i'm not sure about this....

tnx :D
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: differences between some options with - and :

Post by Bonzo »

The Im options

-label adds a label to an images data ( not seen on the image ) and label: adds text to an image.

Code: Select all

convert -background lightblue -fill blue -font Arial.ttf -pointsize 70 label:Anthony label.gif
Image
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: differences between some options with - and :

Post by anthony »

Well not quite..

-option means a operation or setting that is to be either stored for later use or applied to images already in memory.

option: is a image file format or coder, which is used to generate/read/write images.

For writing a coder must be used with a -write operation, OR is an implied write operation such as the last argument of a "convert" command.

So -label adds some label meta-data to any image that is later read in (use -set label to add it to images in memory). While label: actually creates an image from the given 'text' argument (text to image conversion). They are very different things.

NOTE: label: is a read-only coder, you can not write to a label: image file format.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply