Jpeg headers ( little OT )

does anyone know any tricks to get jpeg header details - size and
depth - using C file tools? preferably without loading the entire jpeg
into memory?

and the same sort of thing (width height extract) from gif?

without using a helper library?

thanks, hope this makes sence :wink:

Have you looked at the file formats themselves?

(See external links towards the bottom of these pages for links to
specifications)


http://en.wikipedia.org/wiki/JPEGOn Fri, Jun 27, 2008 at 9:13 AM, wrote:

does anyone know any tricks to get jpeg header details - size and depth -
using C file tools? preferably without loading the entire jpeg into memory?

and the same sort of thing (width height extract) from gif?

without using a helper library?