Help me to optimize command please
Posted: 2011-08-27T11:49:15-07:00
The following commands consume CPU too much Please, help me optimize it.
The goal is to print watermark diagonally as two texts strings(white and grey) having a small relative offset.
Please help me make it run faster.
Regards.
Code: Select all
# Prepare watermark PNG
convert -background transparent \
\( -fill grey75 -font DejaVu-Sans-Condensed \
-size $wm_width label:$wm_text \
-gravity center \) \
\( +clone -fill white -size $wm_width \
label:$wm_text \
-roll -3-3 -gravity center \) \
-reverse -composite -gravity center -rotate $wm_angle \
$wm_filename
# Apply watermark in-place
composite -dissolve $wm_opacity% -gravity center \
$wm_filename $src_filename $src_filename
Please help me make it run faster.
Regards.