PDA

View Full Version : [sug] img attachment size storing


fruitsalad
Wed 2nd May '01, 12:13pm
how about storing attached images width and height in the attachments table?

seeing as the script already uses getimagesize to check for max width and height allowed why not store them aswell?

the reason i ask is that i allowed for swf attachments and having turned 'display images in thread' on, i have swf movies opening in the thread. (had to add a little bit extra into functions.php) getimagesize supports swf too....

eg. http://www.pcmarket.com.au/forum/showthread.php?threadid=1833

There is a slight problem in the displaying of the attached swf as the plugin does not know its dimensions, since it is being pulled from the database, and thus defaults to a certain size.