Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the natural size/dimensions of a Flash SWF file?

I've been given a Flash file (.swf extension) to put into a web page. Opening the file in my browser makes it quite blurry, so I'm assuming there is a natural size for the file, same as an image.

It's also rectangular so I need to work out the aspect ratio if I don't have an exact size. How would I find this information out?

like image 677
DisgruntledGoat Avatar asked Dec 02 '09 15:12

DisgruntledGoat


1 Answers

I was wondering how to get this myself last night. Didn't find anything on google, but then I remembered that PHP's getimagesize works on swf movies:

<?php
    $file = "YOUR_FILE.swf";
    $info = getimagesize($file);
    $width = $info[0];
    $height = $info[1];
    print "{$width}x{$height}\n";
?>
like image 89
typeoneerror Avatar answered Sep 20 '22 04:09

typeoneerror