Getting JPG dimensions with AS3 without loading the entire file
by Carlos Pinho, June 21st, 2007
  • Share
  • Share

flash_platform_icons.gifHi,

Here is an example by Antti Kupila of how to get the image size without loading it. A good use to use this script if for example to give the specific size of the box that will contain the image, or for example on a gallery, you can show to the end user the real image size, just after the thumbnail pic which is smaller.

You can download the class file here and the class example here.

Read More.

Brgds,

CP

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

No Responses to “Getting JPG dimensions with AS3 without loading the entire file”

  1. Hadi Says:

    Find a combined class using Antti Kupila’s class here:
    http://www.emstris.com/2009/05/extracting-binary-info/

Let leave a Comments for this post.