It is currently Sun Jul 21, 2024 10:22 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 11:39 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
another stencil related question

is there a filter or a script that "decomposes" an indexed image into several layers ?
not sure if im using the correct words....
decompose seems to relate to black and white

to clarify: in case of the tiger i made with saulgoode's quantize script

Image

what if i want to have each colour on a seperate layer ?
the manual way would be to use the 'Select by Colour Tool' and fill layers, one at a time with the colour

is there a script that does this automatically for me ?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 11:56 am  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
http://chiselapp.com/user/saulgoode/rep ... -decompose

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 12:13 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
lol, thanks again saulgoode

this is great !


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 12:28 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
there is something strange going on with this script
after i applied the script and made the original layer invisible, everything is gone
i can see the individual layers in the layer-folder, but they are not displayed

once i drag every layer out of the folder, they are visible


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 12:47 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Aug 28, 2012
Posts: 3062
Location: Idk where I am.
Maybe they are linked, see if the chain looking icon is selected.

_________________
Image
Reality is a lovely place...But I wouldn't wanna live there.


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 1:07 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
I'm not seeing anything amiss.

Here is the XCF file that resulted from running the filter:

http://barn.kerosenecow.net/u/saul/m/tiger-xcf/

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Thu Oct 10, 2013 2:31 pm, edited 1 time in total.

Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 1:15 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
i tried it again - same result

here is the xcf

EDIT: sorry, wrong file
now with correct one


Attachments:
invisible tiger.rar [101.61 KiB]
Downloaded 127 times
Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 1:30 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
It seems OK to me. Just to make sure that I understand what you're saying...

Esper wrote:
there is something strange going on with this script
after i applied the script and made the original layer invisible, everything is gone
i can see the individual layers in the layer-folder, but they are not displayed


After running the script, you are hiding the layer named "[G'MIC] Smooth [anisotropic] : -gimp_anisotropic_smoothing 100,0.28,1,0.6,1.1,0.8,30,2,0,1,2,0,1,0,0" and then the entire image becomes transparent (and all you see is a checkerboard)?

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 1:35 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
no, sorry i uploaded the wrong file
i re-attached the correct one

your xcf is still downloading...
i dont know how to measure the exact dl-speed
i had a tool for that but i cant find it anymore
i think it took about 13min


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 1:55 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
i installed a tool, it says dl-speed is 950kbit/s


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 2:12 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Apparently GIMP is not designed to handle Indexed mode images that contain layer groups. I hesitate to call it a bug because if you add a layer group to an RGB image, the "Image->Mode->Indexed" option becomes inaccessible. And as you noted, dragging every layer out of the folder causes them to become visible. My guess is that the developers are quite aware of this limitation.

I could modify my script to correct for this, but I wish to investigate a little further.

To "fix" your image, first convert it to RGB then add a transparent layer to the layer group (this seems to be the only way to trigger an update of the image). Afterward, you can delete the transparent layer. Note that since your RGB image has a layer group, converting it back to Indexed is no longer an option.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 2:16 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
saulgoode wrote:
To "fix" your image, first convert it to RGB then add a transparent layer to the layer group (this seems to be the only way to trigger an update of the image). Afterward, you can delete the transparent layer. Note that since your RGB image has a layer group, converting it back to Indexed is no longer an option.

thanks for looking into that !
will do as you say


Top
 Post subject: Re: decompose an indexed image into several layers ?
PostPosted: Thu Oct 10, 2013 2:30 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Esper wrote:
i installed a tool, it says dl-speed is 950kbit/s

About what I was expecting. I guess it will have to do for now.

I have substituted a smaller image for the one that was 90Mb so nobody else has to waste 13 minutes downloading it. Thank you for checking it for me.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) "Indexed" in Image->Mode is disabled.

8

No new posts Attachment(s) ( solved) dimensions of the image on several linked layers

4

No new posts Attachment(s) HSV decompose

11

No new posts Attachment(s) exporting 256-color indexed png & gif missing transparency

9

No new posts Retexture an image with another image as "Image Pattern" Plug-in

4



* Login  



Powered by phpBB3 © phpBB Group