Page 2 of 3

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

Posted: 2020-03-29T08:47:29-07:00
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.$$"

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

Posted: 2020-03-29T09:16:19-07:00
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.

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

Posted: 2020-03-29T09:59:34-07:00
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.

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

Posted: 2020-03-30T09:19:10-07:00
by tapdroid
how do I make this accept multiple pngs - and export multiple pngs -- please

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

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

Posted: 2020-03-30T09:21:05-07:00
by tapdroid
never mind figured it out

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

Posted: 2020-03-30T10:26:43-07:00
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.

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

Posted: 2020-03-30T11:38:19-07:00
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...

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

Posted: 2020-03-30T11:59:33-07:00
by fmw42
Post your original by itself, so we can experiment with it.

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

Posted: 2020-03-30T12:51:32-07:00
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.

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

Posted: 2020-03-30T13:49:41-07:00
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

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

Posted: 2020-03-30T14:08:39-07:00
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.

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

Posted: 2020-03-30T14:57:13-07:00
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.

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

Posted: 2020-03-30T15:17:36-07:00
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.

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

Posted: 2020-03-30T15:58:36-07:00
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.

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

Posted: 2020-03-30T17:23:31-07:00
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.