Page 1 of 1

Help me to optimize command please

Posted: 2011-08-27T11:49:15-07:00
by r.osmanov
The following commands consume CPU too much :( Please, help me optimize it.

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
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.

Re: Help me to optimize command please

Posted: 2011-08-29T00:38:05-07:00
by r.osmanov
Thanks to fmw42, the problem resolved in thread viewtopic.php?f=1&t=19348