Welcome Guest, Not a member yet? Register   Sign In
Getting Verot's class.upload to resize an image with a max-height?
#4

[eluser]Unknown[/eluser]
[quote author="noctrum" date="1267245825"]http://www.verot.net/res/sources/class.upload.html

Quote:# image_max_width if set to a dimension in pixels, the upload will be invalid if the image width is greater (default: null)

$handle->image_max_width = 200;

# image_max_height if set to a dimension in pixels, the upload will be invalid if the image height is greater (default: null)

$handle->image_max_height = 100;
[/quote]


Well, I had tried that, but what that does is that it makes the uploading invalid if the height is more than 100. So, if I were to select a file, 350*350, I'd get an error.


Messages In This Thread
Getting Verot's class.upload to resize an image with a max-height? - by El Forum - 02-27-2010, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB