Drawing on bilevel PNG is (very) slow
Posted: 2013-09-16T03:57:50-07:00
Related to my previous post (viewtopic.php?f=1&t=24069), I am making experiments with annotation and drawing on the image.
In principle all works. But as soon as I work with monochrome (bilevel) images, ImageMagick becomes extremely slow. I have an Intel i7, Win7 yet drawing a straight line in a 48000 x 1200 pixel bilevel PNG still takes the better part of 30 seconds.
This will take a second or two and creates a 4bpp PNG
This takes around 30 seconds:
What can I do to speed up drawing ? Happy to try everything.
In principle all works. But as soon as I work with monochrome (bilevel) images, ImageMagick becomes extremely slow. I have an Intel i7, Win7 yet drawing a straight line in a 48000 x 1200 pixel bilevel PNG still takes the better part of 30 seconds.
This will take a second or two and creates a 4bpp PNG
Code: Select all
convert -size 48000x1200 xc:white -fill black -stroke black -strokewidth 50 -draw "line 0,0 1000,300" normal.png
Code: Select all
convert normal.png -type bilevel mybilevel.png