Re: [Gimp-developer] script-fu-server protocol
NunoACHenriques [EMAIL PROTECTED] writes: Hi! Where can I find documentation about the Script-fu-server protocol? You have to read the source code. Sorry if this is an off-topic post but I couldn't find the Protocol anywhere and my problem is: I run the gimp-script-fu-server (Gimp 1.2.1 for Linux) and I have a C program that opens a TCP socket to it (port 10008). I get connected but when I send a simple command like (set! x) the server shutdown the socket?!... :-( What am I doing wrong? Here's a Java program I wrote that talks to the server: It reads lines from stdin and sends them to the server. import java.io.*; import java.net.*; public class GimpClient { public static void main(String args[]) throws IOException { Socket sock; DataInputStream dis; PrintStream dat; byte[] header = new byte[2]; byte[] reply = new byte[99]; InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); sock = new Socket(localhost,10008); dis = new DataInputStream(sock.getInputStream()); dat = new PrintStream( sock.getOutputStream()); for(;;){ String myline = br.readLine(); if (myline == null) break; header[0] = (byte) (myline.length()8); header[1] = (byte) (myline.length() % 256); dat.print(G+new String(header)+myline); dat.flush(); int len = dis.read(reply); for (int i = 0; i len; i++){ System.out.print((char)reply[i]); } System.out.println(); } sock.close(); } } ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] suggestion for color to alpha
Sven Neumann [EMAIL PROTECTED] writes: Hi, Branko Collin [EMAIL PROTECTED] writes: Does image/Select/By Color what you want? I think Branko is right here. Color-To-Alpha is not suited for chroma-keying since it will remove all shades of blue from all colors in the image. Classic blue-boxing requires to clear only exactly the color defined as the blue-box background. This can easily be achieved using Select-By-Color with a small threshold followed by Clear. That works fine for opaque objects, but not for translucent ones. For example, when you have someone with long hair you can see some of the blue background through the hair, so the colour in those pixels is a mixture of the hair colour and and the blue background. Even with opaque objects you still have pixels along the edge of the object where you get blue mixed in. Using Select-by-Colour to remove the blue leaves a blue fringe around the object. Select-by-Colour, Grow, Feather, Clear works better, but you still have blue around the object that should not be there. Tim ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] suggestion for color to alpha
Rebecca J. Walter [EMAIL PROTECTED] writes: it might be useful if the color to alpha filter could a) interact with That reminds me: I'd like to use the color to alpha filter for chroma-keying. That is, stand the subject in front of a blue screen and use color-to-alpha to remove all the blue. However, the filter removes too much blue -- the resulting colour is as saturated as possible, even if the original colour wasn't so saturated. I'm thinking that it would be handy if the color-to-alpha had a preview and slider that went from 0 to 1, where 0 = do nothing and 1 = current behaviour and 0.5 gives a result half way between that for 0 and 1. Does this seem useful? Is there a better way to do this? just a thought. no, i can't prrogram it myself. I can program my idea if folks are interested. Tim ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer