Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

How can we convert a script - Image Magick green screen removal script - to an executable, and simply
drag gif files into the exe to remove all green from said gif?

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by fmw42 »

What is your ImageMagick version and platform?

Which green screen script?

If it is my greenscreen script at my link below, then you cannot. My scripts are bash shell scripts and do not run on Windows as .bat scripts.

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

ImageMagick version 7.0.10-2 Windows.
As far as a green screen script, I do not yet know how to one together, nor make it executable.
Is it possible to build an exe to remove the green from animated .gifs?

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by fmw42 »

I have a greenscreen script, but it is for Unix-like systems and does not run under normal Windows. You would have to use it on Windows 10 Unix or Windows w/Cygwin. But it runs on a single image and not an animation.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by snibgo »

tapdroid wrote:Is it possible to build an exe to remove the green from animated .gifs?
Yes, if you want. An input animated gif can be split into frames, then each frame processed however you want, then put back into an output animated gif.

It may be easier to build a BAT drag-and-drop script. If you have bash, that BAT script could call a bash script, such Fred's ImageMagick Scripts.
snibgo's IM pages: im.snibgo.com

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

I'm on Windows. I thought Fred said it could not be done with his script.
Also, if the gif was separated, green screen removed, and each frame saved as transparent png, that would be great too.
I just have No Noob reference where to start.
can it be done kinda like Auto it? Make a script and ether drag the gif in, or what I think would be great is
to give it a UI and be able to click Input Folder, Output Folder, click start and that's it...

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

guess i need to research bash...

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by fmw42 »

A .bat script on windows could do your drag and drop. There is nothing like that in native Unix. Perhaps some other tools. I can do it on my Mac in AppleScript for a GUI.

If you have windows 10, then it has built in bash unix. Or you can install Cygwin as a unix environment for Windows.

Alternately, someone would have to recode my script in .bat windows syntax. But I cannot do that.

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

ok, lets see if I got this straight...
Imagmagick 7 on Windows 7 requires Cygwin. At that point I can create a script that will;
import an animated .gif, separate each frame, remove the green screen, export each frame as transparent .png
and be able to use that script as a .bat or exe to be able to run on any Win 7-10 machine?

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by fmw42 »

I do not know about the .bat part. If you use Cygwin you are not using normal Windows. You would be in a bash shell. My script would run and processes each image to remove the green (I presume, but have not seen your animated gif to know).

You would have to discuss the .bat part with snibgo

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

So taxing being this confused...

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by snibgo »

wrote:Imagmagick 7 on Windows 7 requires Cygwin.
No. Cygwin is needed for bash, but not for ImageMagick.

You can write a BAT script as a drag-and-drop script. This might separate the frames then, for each frame, remove the green screen. Finally, it can rebuild a new GIF from the frames.

If you have Cygwin, your BAT script can call bash scripts to do anything you want. For example, the BAT script could call one of Fred's bash scripts.
snibgo's IM pages: im.snibgo.com

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

Ok... lets focus on this;
You can write a BAT script as a drag-and-drop script. This might separate the frames then, for each frame, remove the green screen. Finally, it can rebuild a new GIF from the frames.
- I wonder where to start. Can I modify an existing script to run on windows?

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by tapdroid »

I'm looking at Fred's ImageMagick Scripts to try to Get A Clue
but I'm not seeing gif of separate frames. Gonna look at some code...

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Pull my .gif into an exe - or rather, multiple gifs to rid green screen...

Post by snibgo »

I suggest you start simple, and work your way up. Learn how to write and run a BAT script. Learn how to make it a drag-and-drop script.

For ImageMagick: learn how to read an animated GIF and write individual image files, and vice versa.
snibgo's IM pages: im.snibgo.com

Locked