File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes JPEG Characteristics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "JPEG Characteristics" Watch "JPEG Characteristics" New topic

JPEG Characteristics

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
Can anyone tell me how to parse a JPEG for information about it? You should be able to parse through a JPEG and extract height and width of the image but I can't find where or how to do this. Can anyone help? Thanks in advance.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Even better, let someone else's existing code do it for you: the Imageinfo class.
I agree. Here's the link:
subject: JPEG Characteristics
It's not a secret anymore!