On 9/9/05, lode leroy <[EMAIL PROTECTED]> wrote: > >That said, if a PBM is a renamed version of a different file type that > >can be output by GIMP, you can manually select the output file type > >(although in that case, adding pbm as a "default extension" of that > >file may be something that is wanted). > > > >I don't suppose PBM is supported in 2.3.3/CVS, is it? Or if it is, > >does it require any special libraries?
I've written a couple of PBM/PGM/PPM import/export filters (though not for the Gimp). The format is very simple, which I guess is why the GNU OCR program likes it. An image looks something like (from memory, untested): P2 3 3 255 12 3 45 23 43 255 245 128 0 Meaning this is a one-channel, many bit ascii image, 3 x 3 pixels, with 255 as the max value per channel. There are also binary modes (phew), colour versions, and >8 bit versions. LGPL code here: http://cvs.sourceforge.net/viewcvs.py/vips/vips-7.11/libsrc/conversion/im_vips2ppm.c?view=markup http://cvs.sourceforge.net/viewcvs.py/vips/vips-7.11/libsrc/conversion/im_ppm2vips.c?view=markup John _______________________________________________ Gimp-developer mailing list [email protected] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
