From: Mark M <mar...@ya...> - 2012-01-30 08:00:55
|
I want to have the mouse on a web browser allow a user to free hand draw using different colors and pen thicknesses over an existing image and place text (through a text insert cursor) on the same image. The text could be of different fonts, colors and sizes also. I want a person to be able to annotate an image. I would like to use GraphicsMagick (under Linux) to overlay this text and drawing over the image using its ability to annotate. In looking over the FAQs and documentation, I think the way to do that is to use the -draw command and use point (or line) and text primitives to do the job. I could see where this could get into thousands of points potentially. Will that overload the command line or cause any noticeable slowdown in processing if I have thousands of primitives? Is there an XML way do to same thing where all the annotation information could be put in an XML file? It appears I need to use -font to set the text font name, do I use -foreground or -fill to set the text and pen colors? Could I use the -file command to save out an overlay differential to prevent reprocessing every time I display. My intentions are not to modify the original image, but to process the annotations in real time, that way they could be toggled on or off without having to store both versions of the file. |