Imagemagick

From Unix Wiki
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