Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP: How to get shockwave .dcr file width and the height?

Tags:

php

shockwave

As we know the function getimagesize() works very good for images and swf files.

But it doesn't support shockwave file (.dcr).

SO, how can I get the width and the height of such file..

like image 243
assaqqaf Avatar asked Nov 15 '22 00:11

assaqqaf


1 Answers

I am not Lingo/Director expert, but AFAIK you won't be able to do this from PHP.

.DCR file format is not open so you won't find file format specification for you to make your own parser and extract that info on your own.

However, there should be way to do this using director movie on client side.

Eg. You load external dcr file inside your own director movie (then you will be able to read width/height etc of loaded file). Your own director movie then updates some database with info on that specific loaded file so you can show width/height later on.

I've found this artice dating back to 2006 where this guy suggests the same thing: http://director-online.com/forums/read.php?1,20621,20621,quote=1

Good luck mate! :)

like image 121
seven Avatar answered Dec 28 '22 14:12

seven