Drawing four circles with ImageMagick

Posted on 2007-10-04
Last Modified: 2012-08-13
I am new to ImageMagick and find it very cool!

My question is this:  I want  a 500 by 500  .gif image with 4 circles on it.

Later I will want to make the position of the circles random, but for now any position for the circles if fine.

Question by:perldog
    1 Comment
    LVL 16

    Accepted Solution

    This should do the job:

     convert -size 500x500 xc:white  \
                -draw "fill green circle 41,39 44,57 \
                       fill blue circle 99,39 256,87 \
                       fill yellow circle 39,79 111,157 \
                       fill red circle 70,61 57,32  " circles.gif

    For more help, look here:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    "I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
    This article shows how to convert a multi-page PDF file into multiple image files, with one image file created for each page of the PDF. It does this by utilizing an excellent, free software package called GraphicsMagick. The solution is amazingly s…
    Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
    After watching the Introduction to GIMP this tutorial will show you additional tools to use in GIMP.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now