Changeset 12447
- Timestamp:
- 12/18/2009 09:53:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.9/wp-admin/includes/image-edit.php
r12281 r12447 510 510 511 511 // check if it has roughly the same w / h ratio 512 if ( round($sX / $sY, 2) == round($fwidth / $fheight, 2) ) { 512 $diff = round($sX / $sY, 2) - round($fwidth / $fheight, 2); 513 if ( -0.1 < $diff && $diff < 0.1 ) { 513 514 // scale the full size image 514 515 $dst = wp_imagecreatetruecolor($fwidth, $fheight);
Note: See TracChangeset
for help on using the changeset viewer.