pants:/public_html/jubilee# cat index.html | jpegtopnm 
Not a JPEG file: starts with 0x3c 0x21

pants:/public_html/jubilee# cat cover.jpg  | jpegtopnm > /dev/null 
jpegtopnm: WRITING PPM FILE

Hows that?

On Fri, 2002-05-31 at 13:30, Kerry Baker wrote:
> Hi all,
> I am writing a script that downloads a .jpg file from a web site and
> verifies it is not corrupt.
> Does anyone know of a command line utility that checks the validity of a
> jpeg file?
> 
> Thanks.
> 
> Kerry.
> 
> 
> 


Reply via email to