Image upload to fit area. |
4/28/2010 3:14:11 PM |
PHPRunner General questions | |
R
rpain author
Hi, |
|
![]() |
Sergey Kornilov admin 4/28/2010 |
Richard, |
R
|
rpain author 4/29/2010 |
Richard, PHPRunner, unfortunately, doesn't provide this functionality out of the box. You can try to implement what you looking using events. Here are a few links to get started. http://xlinesoft.com/phprunner/docs/check_size_and_extension_of_uploadfiles.htm http://xlinesoft.com/phprunner/docs/rename_uploaded_file.htm http://xlinesoft.com/phprunner/docs/upload_files_to_users_folders.htm
|
![]() |
Sergey Kornilov admin 4/29/2010 |
Setting max height of thumbnails is not possible - that's why you need to roll your own solution. $width_old = imagesx($image);
|
R
|
rpain author 4/30/2010 |
Setting max height of thumbnails is not possible - that's why you need to roll your own solution. Check CreateThumbnail() function in phpfunctions.php file. The current implementation calculates both height and width: $width_old = imagesx($image);
|