Imagemagick

From Unix Wiki
Revision as of 22:45, 12 November 2013 by Mshevtsov (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Text On Transparent Background

convert -size 560x85 xc:transparent -font Palatino-Bold -pointsize 72 \
-fill black -draw "text 20,55 'TEXT TEXT TEXT'" -type truecolormatte PNG

Transparent Text in Center of Image On Transparent Background

convert -size 560x85 xc:transparent -font Palatino-Bold -pointsize 72 \
-fill 'rgba(0,0,0,0.4)' -draw "text 20,55 'BT - Kimosabe'" -gravity center \
-type truecolormatte PNG32:title.png

Upscale Image And Make It Sharpen

For sizes greater then 500 pixels. Following command will upscale image keeping proportions if height is less then 502 pixels:

convert input.gif -resize x502\< -unsharp 0x0.75+0.75+0.008 output.gif