How do I draw a pixel in a random spot within multiple image

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How do I draw a pixel in a random spot within multiple image

Post by Bonzo »

This will draw a 1 pix rectangle on an image overwritting the original.

Code: Select all

mogrify -fill red -draw \" rectangle 30,30 31,31 \" sunflower.jpg
You will need to change the values to presumably a variable; as you have not said what API or php etc. you are using I can not give any further information.
Post Reply