View Full Version : Why is this hard-coded?
September 22nd, 2006, 02:14 AM
function resize_jpeg( $image_file_path, $new_image_file_path, $max_width=480, $max_height=1600 )
Not sure about this? I'm having problems with image sizes or memory. Can I make this bigger?
September 22nd, 2006, 02:55 AM
So I added the code referenced in this thread: http://www.photopost.com/forum/showthread.php?t=122687
and I added some additional output parameters to debug the issue. Here is my result on the error:
The image you submitted exceeds the maximum allowed size.
Please resize your image.
php memory =0,
file memory =25050432
image stats0=2592 (image width)
image stats1=1944 (image height)
image stats2=2 (image type)
image stats bits = 8
image stats channels = 3
constants, pow1, pow2 = 65536, 1048576
I also added this:
to the top of both pp-inc.php and uploadphoto.php. Neither is taking, obviously. I think it's too late in the script.
I changed the hard-coded line above to 3000 and 3000 to try to get this example to load.
September 22nd, 2006, 08:21 AM
It's only a default value should the function be called without those parameters; it's not an actual hardcoded limit.
The actual max sizes are set in the Admin Option; there is an option to resize images down automatically if they exceed your limits, too.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.