generating a junk input image (as you never provided one)
Code: Select all
convert -size 3184x2120 xc: \
\( -size 256x256 xc:black -fill white -draw "polygon 0,0 0,21 139,136 255,243 255,0" \
-crop 256x255+0+1 +repage -scale 256x1! -channel blue \) -clut \
\( -size 256x256 xc:black -fill white -draw "polygon 0,0 0,6 57,43 112,139 255,235 255,0" \
-crop 256x255+0+1 +repage -scale 256x1! \) -clut \
-modulate 100,90 t.jpg
that took 18 seconds on my older two-core machine.
The polygon generation however only took 0.03 seconds.
As such it looks like the clut is the thing that is being very slow.
Code: Select all
convert -size 3184x2120 xc: \
\( -size 256x256 xc:black -fill white -draw "polygon 0,0 0,21 139,136 255,243 255,0" \
-crop 256x255+0+1 +repage -scale 256x1! -channel blue \) -clut \
null:
About 9 seconds! -clut is the cause.
It really should not take that long!
Looking at the CLUT the image appears to be a simple linear level operator to do a de-contrasting
operation. Perhaps you can use +level instead.
http://www.imagemagick.org/Usage/color_mods/#level_plus
Code: Select all
convert -size 3184x2120 xc: +level 10,5% null:
took only 1.4 seconds!