Ok I guess should explain, After much searching the only thing I could find to do what I want if FOP.
I want to be able to read in either a gif or a jpeg and check the dimensions of it. AWT has to much overhead because it attempts to renderthe image. Whereas FOP seems just to reader the header information. As I can't guarantee that my application will run using JDK 1.4 I can't rely on JavaImage io classes. attached is a jpeg that wont read, I then went ahead and converted a working gif into a jpeg using Photoshop. It doesn't work either. If anyone has another suggestion to do what I want to do, they're mor than welcome. I know it's only using a small part of fop, and not using it for what fop was designed for, but it does work, If I can get it to read a jpeg. Regards Steve -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 April 2003 12:24 AM To: [EMAIL PROTECTED] Subject: Re: Can't read JPEG file using JPEGReader Can you please start by telling us what you're trying to do? Have you tried a different JPEG image? There are JPEG's that won't work. Maybe you just got something that's not supported. Can you post a little (!) JPEG that doesn't work? Anyway, I'm wondering why you're working with ImageReaderFactory and friends at all. On 09.04.2003 03:16:29 Steve Vanspall wrote: > Hi there, > > I was wondering if anybody else has this problem. > > If I use either > > ImageReaderFactory.Make(null, inputstream) > > and actually give it the input stream of a file that I know is a JPEG, > > it return null. > > If I try > > reader = new JPEGReader() > reader.verifySignature(null, new BufferedInputStream(FileInputStream)); > > it returns false, indicating that the input doesn't match the epected input > of a JPEG File > > If I try the same with the GIFReader adn a GIF File, ti works fine > > ImageReaderFactory.Make(null, inputstream) where inputstream is that of a > gif file > > return a GIfReader > > reader = new GIFReader() > reader.verifiySignature(null, new BufferedInputStream(new > FileInputStream(gifFile))); > > return true > > I can then procedd to get the dimensions of the image > > Can anyone suggest what I might be doing wrong, or a workaroudn for this > problem Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<attachment: add_another_disabled.jpg>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
