It is currently Sun May 05, 2024 7:54 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sat Sep 05, 2015 9:37 pm  (#21) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
sallyanne wrote:
Don't know about a script but G'MIC has a filter called Extract Objects found under Arrays and Tiles
I just tried it...not done so before. Will extract the pictures onto different layers


It just squares them tran to make them all the same which I guess is what a script would do
I have attached the extracted picture so you can see what it does.
Attachment:
megaman7.xcf

How would you automate that though? it sounds difficult to me.
There are other applications that are built just to do that.

_________________
TinT


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sat Sep 05, 2015 10:00 pm  (#22) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7723
Location: On the other side of this screen
trandoductin wrote:
How would you automate that though? it sounds difficult to me.
There are other applications that are built just to do that.


I have no idea (you're the script writer ;) ) I also noticed it extracted two together where they were almost the same size as one.


If you want to know ask David...He wrote this filter.

_________________


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sat Sep 05, 2015 10:03 pm  (#23) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
sallyanne wrote:
trandoductin wrote:
How would you automate that though? it sounds difficult to me.
There are other applications that are built just to do that.


I have no idea (you're the script writer ;) ) I also noticed it extracted two together where they were almost the same size as one.


If you want to know ask David...He wrote this filter.

Oh there's already a script. Great, then I don't have to bother with it then.

_________________
TinT


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sat Sep 05, 2015 11:33 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@Nixnine:
I think the script you're after is DivideTransBG.scm by Rob-A available here:
http://www.silent9.com/incoming/scripts

Ref:
viewtopic.php?f=9&t=7812

For the sprite sheet you posted above, you will first need to remove the white background (unless you intend to put the separated sprites back onto white backgrounds). I find that Select-by-color with threshold about 4.5 does the job cleanly.


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 9:16 am  (#25) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I downloaded and tried the script from this post. I think it must be for v2.6 as I got absolutely no results.
viewtopic.php?p=101261#p101261

I cleaned the background first and did alpha to selection before trying.

Attached is the xcf file with the bg removed.


Attachments:
megaman7_000001.xcf [142.38 KiB]
Downloaded 89 times

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein
Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 10:22 am  (#26) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Download from Rob's site:
http://www.silent9.com/incoming/scripts

click on DivideTransBG.scm and save to your personal scripts folder.
It works fine for me both on Gimp 2.8.14 and 2.9.1


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 12:38 pm  (#27) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
jontait2 wrote:
click on DivideTransBG.scm and save to your personal scripts folder.
It works fine for me both on Gimp 2.8.14 and 2.9.1
I must be doing something wrong. I still get no results with the download from the link in your post. Please post an image of the settings you used.
Thanks.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 12:57 pm  (#28) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
I just left the defaults and changed "Maximum items to isolate" to 100.
and i a new image of 47 separate layers.

_________________
TinT


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 1:13 pm  (#29) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Well then here's an image of my settings. I have no output. Did you do alpha to selection of the image of the megamen?

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 1:21 pm  (#30) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@Oregonian:
I think you must have auto-cropped the image before running the script and it doesn't like that - it needs a bit of transparent border around each sprite.


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 1:44 pm  (#31) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Oregonian wrote:
Well then here's an image of my settings. I have no output. Did you do alpha to selection of the image of the megamen?

[ Image ]

I didn't select anything... i just copied the megaman image from the post and pasted as new image in gimp and ran the scripts with defaults and it worked.

_________________
TinT


Top
 Post subject: Re: Hello again (Or now me has a question)
PostPosted: Sun Sep 06, 2015 2:24 pm  (#32) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
jontait2 wrote:
@Oregonian:
I think you must have auto-cropped the image before running the script and it doesn't like that - it needs a bit of transparent border around each sprite.
Ah! That worked! I added more canvas to the image.

Finally! Thanks! :jumpclap :clap :yes

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group