Solved

I need a photo editor that will automate putting a circle at x, y coordinates over a gif file and save to a specified file name. Is there an answer?

Posted on 2015-02-08
5
146 Views
Last Modified: 2015-02-15
I need a programming language or batch/script that will take a gif file, put a circle around specified x, y coordinates in the file and save it using a uniquely specified file name

Thx
0
Comment
Question by:7johnny11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 13

Expert Comment

by:Mark Bullock
ID: 40597451
You can probably use ImageMagick on Windows with a script. http://imagemagick.org/Usage/
0
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 500 total points
ID: 40597634
GraphicsMagick has a command line version that can do it:
http://www.graphicsmagick.org/

After installing GraphicsMagick, you'll have the gm command that may be called directly from the command line or from any script, batch file, or programming language that is able to call a command line executable. Here's an example of the command to draw a circle with the center at 100,200 (pixel X,Y location) and radius 50 (pixels):

gm convert TestGIFin.gif -draw "translate 100,200 circle 0,0 50,0" TestGIFout.gif

There are many options, such as border color, border width, fill color, transparency, etc. I'm sure you can figure all that out from the command line documentation, but this post should get you started. Regards, Joe
0
 
LVL 92

Expert Comment

by:nobus
ID: 40600190
or use a macro recorder like : www.automationanywhere.com
another one :  https://www.jitbit.com/macro-recorder/

there are also some free ones if that's what you want
0
 

Author Closing Comment

by:7johnny11
ID: 40611416
Excellent!, I tested and it gave me a solid black circle on the output gif. I will experiment with changing the options it to get what I'm looking for
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 40611500
I'm glad it works for you. And whatever you're looking for, there's probably a way to do it. For example, let's say you don't want the circle to obliterate the contents of the GIF (-fill none) and you want the border to be blue (-stroke blue) and you want the border to be thin (-strokewidth 1) — so the command for that is:

gm convert TestGIFin.gif -fill none -stroke blue -strokewidth 1 -draw "translate 100,200 circle 0,0 50,0" TestGIFout.gif

Open in new window

Regards, Joe
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

726 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