RE: How to find the size of a JPEG

2001-09-04 Thread Rob Dixon
> -Original Message- > From: Nigel Wetters [mailto:[EMAIL PROTECTED]] > Sent: 04 September 2001 17:43 > To: [EMAIL PROTECTED] > Subject: How to find the size of a JPEG > > > I've been disecting the CPAN Image::Size module, and have found out > some useful stu

How to find the size of a JPEG

2001-09-04 Thread Nigel Wetters
I've been disecting the CPAN Image::Size module, and have found out some useful stuff that I wanted to share. The beginners list seemed an appropriate place. Here's the algorithm for finding the height and width of a JPEG (all nambers are hex): 1. Skip the first two bytes of the file. 2. Read t