Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v retrieving revision 1.56.2.5 diff -u -r1.56.2.5 img_assist.module --- img_assist.module 4 May 2006 21:35:40 -0000 1.56.2.5 +++ img_assist.module 12 Jun 2006 05:35:07 -0000 @@ -1178,8 +1178,14 @@ $diag_size_std = sqrt(pow($width_std, 2) + pow($height_std, 2)); $difference = abs($diag_size_new - $diag_size_std); if ($difference < $closest_difference) { - $closest_std_size = $stdsize['label']; - $closest_difference = $difference; + if(($stdsize['width'] == $attributes['width']) && ($stdsize['height'] == $attributes['height'])) { + $closest_std_size = '_original'; + $closest_difference = 0; + } + else { + $closest_std_size = $stdsize['label']; + $closest_difference = $difference; + } } } }