Re: [Gimp-user] Outputting image

2009-01-16 Thread Owen
On Fri, 16 Jan 2009 09:44:52 -0800
"Kate T. Yoak"  wrote:

> Hi there,
> 
> Here is another interesting question: is it possible to get the image 
> data out somewhere other than disk? I attempted specifying piped name 
> for image, "|out.pl" , for instance. It simply escapes the pipe and 
> creates a file by that name!  Funny.  :-)
> 
> Once I have Gimp::Image, I would love get the binary data that is the 
> image and do with it as I please.


Sort of not with you as to exactly what you want to do, but can you
save it in the native format, xcf?

If so look at the specs in devel-docs/xcf.txt of the source for all the
bits you can dream of



Owen
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Outputting image

2009-01-16 Thread Mark J. Reed
On Fri, Jan 16, 2009 at 2:52 PM, Kate T. Yoak  wrote:
>> $ mknod pipe.gif p
>> $ out.pl < pipe.gif

> This is neat. Never encountered mknod . Thanks for passing along
> something this useful!

Ah, named pipes can be quite useful, mostly for one-off situations
where there's a better solution that just isn't in place yet.  Note
that mknod is primarily for device files and doesn't actually support
the "p" type for named papes on all systems; if you find one where
"mknod blah p" doesn't work, try "mkfifo blah".


-- 
Mark J. Reed 
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Outputting image

2009-01-16 Thread Kate T. Yoak

> Not by typing something funky in the save-as field.  You could always
> make a named pipe, I suppose:
>
> $ mknod pipe.gif p
> $ out.pl < pipe.gif
>
> That will block trying to read the pipe; go to gimp and save the image
> to "pipe.gif" and then out.pl will start getting data...
>
>   
This is neat. Never encountered mknod . Thanks for passing along 
something this useful!


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Outputting image

2009-01-16 Thread Mark J. Reed
On Fri, Jan 16, 2009 at 12:44 PM, Kate T. Yoak  wrote:
> Here is another interesting question: is it possible to get the image
> data out somewhere other than disk?

Not by typing something funky in the save-as field.  You could always
make a named pipe, I suppose:

$ mknod pipe.gif p
$ out.pl < pipe.gif

That will block trying to read the pipe; go to gimp and save the image
to "pipe.gif" and then out.pl will start getting data...

>  I attempted specifying piped name
> for image, "|out.pl" , for instance. It simply escapes the pipe and
> creates a file by that name!  Funny.  :-)

There's no "escaping" required.  UNIX filenames can have pipes,
greater-than signs, dollar signs, etc; the only two byte values that
aren't allowed in a UNIX filename are zero and '/'.  It's only the
shell that adds special meaning to those other characters, and the
shell is not involved with Gimp's saving of an image.

> Once I have Gimp::Image, I would love get the binary data that is the
> image and do with it as I please.

Well, the binary image data doesn't exist in gimp's memory in that
form; it's created by the save handler for the particular file format.
 I don't know if there's a way in script-fu (Scheme, Perl, or other)
to have the save handler 'save' to something other than a file;
someone else may have a better pointer there.

-- 
Mark J. Reed 
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Outputting image

2009-01-16 Thread Kate T. Yoak
Hi there,

Here is another interesting question: is it possible to get the image 
data out somewhere other than disk? I attempted specifying piped name 
for image, "|out.pl" , for instance. It simply escapes the pipe and 
creates a file by that name!  Funny.  :-)

Once I have Gimp::Image, I would love get the binary data that is the 
image and do with it as I please.

Anybody done this?

Cheers,
Kate
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user