![]() |
PHP Image resize function
I have the GD library installed and running. I can't get this script to work, any suggestions? The picture displays, but not at the size I want.
Quote:
|
I don't really understand what this function is supposed to do, but... Try viewing the source. Are your width and height values getting set correctly in the img tag? That's the place to start.
|
Two things:
1) I see the function declaration, but where is the actual call? Do you have a separate block of code which calls it? I don't see you passing a height, width, target to imageResize. You get it with getimagesize, but never pass that value to the function? Also, without a function call, where is that return value going? It's going nowhere at the moment. It looks like you're trying to accomplish something like: PHP Code:
|
This is some old code I used to generate a thumbnail from an uploaded image, which may help.
For reference, check out the PHP image function documentation. Code:
$fullsize = $user_id . "_" . time() . "_" . $_FILES['shot']['name']; |
Thanks for the help
|
All times are GMT -8. The time now is 02:33 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project