Quote:
|
Originally Posted by deathemperor
use php function getimagesize(), for more info: php.net
|
I've tried that. The thumbnails are stored in theh DB so to access them it uses attachment.php?attachmentid=41&stc=1&thumb=1. The problem is that it returns the size for the fullsize image and not the thumbnail. Pointing directly to the thumbnail doesn't work.
I can load the thumbnail directly from the DB and did find imagesx and imagesy. These work on in memory images however they come with an error of
Warning: imagesx(): supplied argument is not a valid Image resource
EDIT: Nevermind. I found the solution. I had to use imagecreatefromfile() to create the resource that imagesx uses.