# If not GetImageSize(), then what?

**URL:** <https://forum.kirupa.com/t/if-not-getimagesize-then-what/229943>\
**Category:** programming\
**Created:** [June 21, 2007, 12:51pm UTC](https://forum.kirupa.com/t/if-not-getimagesize-then-what/229943 "2007-06-21T12:51:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![praxiz](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@praxiz](https://forum.kirupa.com/u/praxiz)\
**Post date:** [June 21, 2007, 12:51pm UTC](https://forum.kirupa.com/t/if-not-getimagesize-then-what/229943/1 "2007-06-21T12:51:49Z")

</div>

I’m making a PHP script that displays flash ads on a page, one after another. A script selects some of them from my mySQL database and I have the name of the SWF file stored there so I just output that name in the param value="" and the movie is shown.

Very simple.

However the sizes gets all screwed up. I tried just removing width and length from the \<object\> hoping they would retain their default size, but no such luck.

I guess the only alternative is to manually add the width and length of the movie along with the filename - in the mySQL database, and output it in the same way.

Unless any of you have any brilliant suggestions? (-:
