Changeset 10384 for branches/2.2/admin
- Timestamp:
- Apr 15, 2011, 3:16:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/include/functions_upload.inc.php
r9952 r10384 491 491 if ($ratio_width < $ratio_height) 492 492 { 493 $destination_width = ceil($width / $ratio_height);493 $destination_width = round($width / $ratio_height); 494 494 $destination_height = $max_height; 495 495 } … … 497 497 { 498 498 $destination_width = $max_width; 499 $destination_height = ceil($height / $ratio_width);499 $destination_height = round($height / $ratio_width); 500 500 } 501 501 }
Note: See TracChangeset
for help on using the changeset viewer.