I'm posting solution of Maurizio's request here in case somebody need it.
Default resizing system is much better, this solution in case you don't like pictures to be same size anywhere (or adding white background).
What it does (version 4.1) :
1. thumbnails resizing not affected (if you want to play with thumbnails also remove if(!$boolprotection) condition in the below code)
2. if picture is vertical (height more than width) it will resize by height (to fit max configured height)
3. if picture is horizontal it will resize by width (to fit max configured width)
4. white color filling removed.
includes/classes/rlResize.class.php, function _resize this change is just comment 3 lines
PHP Code:
Only registered members can view the code.
same file rlResize.class.php
PHP Code:
Only registered members can view the code.
After i did it i realized more simple way to fix this "problem" - just don't resize anything. as some pre-resizing already done in 4.2 version client side (upload system).
If somebody interested not to resize pictures on server side
PHP Code:
Only registered members can view the code.
Again, It's highly not recommended to change it, (especially last change) - default upload/resize function much better than this solution. Do it only if you know that you need it