Saming all the draw commands into a "mgv" file and then using -draw "@file.mgv" should work quite fast.
This has the advantage that the circles can also be positioned at sub-pixel locations (floating point positions using pixel coordinates)
Note by using draw paths, with relative coordinates, you can draw circles (or other symbol shapes) by just specifying the center point only, followed by a fixed string.. no need to do any calculations yourself...
http://www.imagemagick.org/Usage/draw/#symbol_drawing
and relative circle drawing see..
http://www.imagemagick.org/Usage/draw/#circles
The other way for integer positions is create a "txt" file listing single white pixel at each point you want. You do not need to decalre the other pixels in a "txt" image, but just set a default -background color.
See
http://www.imagemagick.org/Usage/files/#txt
Code: Select all
# ImageMagick pixel enumeration: 5000,5000,255,rgb
100,2431: (255,255,255)
375,933: ( 255,255,255)
...
Code: Select all
convert -background black pixels.txt .....
That image can then be filtered using a 'morphology' or 'convolve' operator to convert each pixel into a circle or other symbol.
Examples of this is in is Draw Symbols Other Methods...
http://www.imagemagick.org/Usage/draw/#symbol_alts
NOTE only draw methods can do sub-pixel positioning.