RE: Can't read JPEG file using JPEGReader

2003-04-09 Thread Steve Vanspall
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]

<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Can't read JPEG file using JPEGReader

2003-04-09 Thread Steve Vanspall
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

Regards

Steve



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: where can I find the javadoc

2003-03-12 Thread Steve Vanspall
Thanks, scrolled through the source doe, got the info I wanted.

Regards

Steve

-Original Message-
From: Victor Mote [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 March 2003 12:49 PM
To: [EMAIL PROTECTED]
Subject: RE: where can I find the javadoc


 Steve Vanspall wrote:

> I have tried to hunt through both the source code tar and the binary tar,
> and can't find the javadoc for FOP. Am I blind, or is it somewhere else.

Good question. Currently, the only way to get the javadocs is to build them
from the sources, using the ant target "javadocs", typically run using the
build.bat or build.sh scripts. For example:
build.sh javadocs

should build them.

BTW, I just updated the FAQ source file with this information, but it may
take a few days for it to be reflected on the web site.

Victor Mote


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



where can I find the javadoc

2003-03-12 Thread Steve Vanspall
Hello,

I have tried to hunt through both the source code tar and the binary tar,
and can't find the javadoc for FOP. Am I blind, or is it somewhere else.

Any help would be great

Steve


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]