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

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

Post by tapdroid »

Is this suposed to be C/user/temp/greenscreen (inside Fred's GreenScreen script)
Cause i do not see it...


# set directory for temporary files
# tmpdir="/tmp"
tmpdir="."

dir="$tmpdir/GREENSCREEN.$$"

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 »

What is the next line in the script? It is:

Code: Select all

mkdir "$dir" || errMsg "--- FAILED TO CREATE TEMPORARY FILE DIRECTORY ---"
What do you think that line does? If you can't guess, then type "man mkdir" at a bash prompt.
snibgo's IM pages: im.snibgo.com

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 »

My script does not run on Windows. So you cannot call it from your C directory. You will have to install Cygwin and then use a Cygwin bash window.

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 »

how do I make this accept multiple pngs - and export multiple pngs -- please

convert test.png -fuzz 30% -transparent green1 result.png

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 »

never mind figured it out

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 »

Using a third party software that is , apparently changing the green to a degree.
I have;
convert *.png -fuzz 50% -transparent green1 actor.png
but even with fuzz set at 98 I still have a green perimeter. [http://tapdroid/magic2.png]
How do I get rid of it ??? Need a clean png.

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, I have
convert *.png -fuzz 50% -transparent green1 actor.png
but I'm using a third party software to capture the animation witch apparently is changing the green just enough
that even if I Fuzz @ 98%, I still have an outline of green. http://tapdroid.com/magic2.png
How can I get rid of all the green?

Sorry, My browser did not refresh till just now - double post...

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 »

Post your original by itself, so we can experiment with 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 »

Hmm...
Tried with black too. at 50% Fuzz, it too has an outline.
Original green - http://tapdroid.com/ogreen.png
Original Black - http://tapdroid.com/oblack.png

I'm going to have 6 different back grounds to choose from in the event that a particular color gets removed.
255 green, black, white dark green, red, blue.

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 »

Using my greenscreen script, I get


Image

Code: Select all

greenscreen -t 30 -a 0 -A 1 ogreen.png ogreen_removed.png
Image

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 do not understand...
Maybe it's Windows thing, but all I get is an empty folder & an a blank file outside the folder.

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 are you trying to do? Be specific? What is your command line? Note that my scripts do not run under Windows. They are bash Unix shell scripts calling ImageMagick. You need to use Windows 10 Unix or Windows w/Cygwin installed and then use a bash terminal, not the CMD window. Then you need to download my script and configure your Unix system as directed on my home page for my scripts.

I only showed you want can be done.

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 »

Running Win 7
At this time, I am only trying to get a good clean green removal.
I put
convert *.png -fuzz 50% -transparent green1 actor.png
in a .bat, drag the original file into the bat file, and get the file out with the majority of the green gone.

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 »

To use my script, you will need to install Cygwin on your Win 7. Otherwise, just do what you are doing and accept the artifacts.

try a little anti-aliasing as follows:

Code: Select all

convert *.png -fuzz 50% -transparent green1 -channel a -blur 0x1 -level 50x100% +channel actor.png
if in a .bat file double the % to %% in both places.

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 »

ThanX So Much - Not a terrible result, could be better but I will continue to learn.
Did install Cygwin. I got Green, blue, Red, and Black to work. How do we do White?

- I did this but it seems to ignore white.
convert *.png -fuzz 15%% -transparent white1 -channel a -blur 0x1 -level 80x100%% +channel actor.png
Wish I knew how how it is done in Fireworks.

Locked