Re: [Gimp-developer] Doing an action for each color in an indexed color-palette

2007-07-05 Thread Kevin Cozens
Roberto Uhlig wrote: > but it doesn't work correct on my xp-pc with gimp GIMP 2.3.10. [snip] > aref brings sometimes negative eg. -51 values. In that case you have to ad > 256 to become the realy color-value for blue. So I implementet (set! blue > (aref color-map (+ 2 index))) (if (< blue 0) (set!

Re: [Gimp-developer] Doing an action for each color in an indexed color-palette

2007-07-05 Thread David Gowers
On 7/5/07, Roberto Uhlig <[EMAIL PROTECTED]> wrote: > Hello and best thanks first, > but it doesn't work correct on my xp-pc with gimp GIMP 2.3.10. > After private consultation with saul some testing and some changes for > windows (backslash \) now it works fine. > Essential change is, that saul's

Re: [Gimp-developer] Doing an action for each color in an indexed color-palette

2007-06-27 Thread saulgoode
I have updated the script (http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/save-as-tiff-masks.scm). It now saves as a LZW-compressed TIFF. ;; Saves a 1-bpp TIFF file for each color of an Indexed image where that ;; color is replaced by white and the rest of the image is black. ;; The T

Re: [Gimp-developer] Doing an action for each color in an indexed color-palette

2007-06-27 Thread saulgoode
Quoting Roberto Uhlig <[EMAIL PROTECTED]>: > Hello, > has/knows anyone a script/plugin (an idea) to go color by color > through an indexed color-palette and doing an action for each color? > I'd like to create from a picture with an optimized color-palette > with ca. 5-10 (may be 1-256) colo

Re: [Gimp-developer] Doing an action for each color in an indexed color-palette

2007-06-27 Thread David Gowers
On 6/27/07, Roberto Uhlig <[EMAIL PROTECTED]> wrote: > Hello, > has/knows anyone a script/plugin (an idea) to go color by color through an > indexed color-palette and doing an action for each color? > I d like to create from a picture with an optimized color-palette with ca. > 5-10 (may be 1-256)

[Gimp-developer] Doing an action for each color in an indexed color-palette

2007-06-27 Thread Roberto Uhlig
Hello, has/knows anyone a script/plugin (an idea) to go color by color through an indexed color-palette and doing an action for each color? I’d like to create from a picture with an optimized color-palette with ca. 5-10 (may be 1-256) colors new layers or new pictures for each color in palette.