views:

287

answers:

2

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?

+2  A: 

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";
?>
Typeoneerror
Ha, that's awesome, thanks!
DisgruntledGoat
A: 

Thanks. That works. You are wonderful.

fklavye
@fklavye, friendly note: in future, you should use the "add comment" link to comment on questions or answers. This is not a forum :)
DisgruntledGoat