Help me to optimize command please

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
r.osmanov
Posts: 7
Joined: 2011-08-24T05:55:12-07:00
Authentication code: 8675308

Help me to optimize command please

Post 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.
r.osmanov
Posts: 7
Joined: 2011-08-24T05:55:12-07:00
Authentication code: 8675308

Re: Help me to optimize command please

Post by r.osmanov »

Thanks to fmw42, the problem resolved in thread viewtopic.php?f=1&t=19348
Post Reply