The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to determine the dimensions of a thumbnail?
I'd like to be to figure out what the actual thumbnail dimensions are for some processing purposes. I can obtain the thumbnail - how do I know what the actual width and height are?
|
#2
|
||||
|
||||
use php function getimagesize(), for more info: php.net
|
#3
|
|||
|
|||
Quote:
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. |
#4
|
||||
|
||||
The funny thing is, when I create a straight php file and run getimagesize on attachments to get size info, it works fine. But put it into vb's task manager causes it to not return width or height. I can't figure out why.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|