Annotation pictures

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
eXMarty
Posts: 2
Joined: 2013-07-12T06:37:24-07:00
Authentication code: 6789

Annotation pictures

Post by eXMarty »

Can I use when annotation pictures to text distortion (eg higher font height)
I tried to trace this option, but I failed. Options such as rotation or slant I found but change the aspect ratio of the font I could find.
Pre mohokrát thanks (especially for samples using the command line)

PS: this is an automatic Google translation so I apologize for any confusion. My mother tongue is Czech
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Annotation pictures

Post by snibgo »

Annotate has no option to change the aspect ratio. But you can resize the image:

Code: Select all

convert -size 1000x1000 xc: -gravity South -pointsize 200 -annotate 0 Hello -resize 10%x100% -trim a.png
snibgo's IM pages: im.snibgo.com
eXMarty
Posts: 2
Joined: 2013-07-12T06:37:24-07:00
Authentication code: 6789

Re: Annotation pictures

Post by eXMarty »

Thanks,
I managed this, but I thought distorted text, but a picture in the background to remain unchanged.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Annotation pictures

Post by snibgo »

Many possibilities. For example, here is a Windows script to position the text at offset (150,100) from top-left:

Code: Select all

%IM%convert ^
  in.png ^
  ( -size 1000x1000 xc:None ^
    -gravity South -pointsize 200 ^
    -annotate 0 Hello ^
    -resize 10%%x100%% -trim ^
    -repage +150+100 ^
  ) ^
  -layers merge ^
  out.png
snibgo's IM pages: im.snibgo.com
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

Re: Annotation pictures

Post by GreenKoopa »

I'm with snibgo. When you create text on it's own layer, endless distortion options are available. label: is an alternative to -annotate.
http://www.imagemagick.org/Usage/text/
Post Reply