![]() |
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?
|
use php function getimagesize(), for more info: php.net
|
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. |
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.
|
All times are GMT. The time now is 05:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|