Playing off what fltseng wrote I came up with this:
/wp-includes/media.php line #363:
if ( !$suffix )
{
switch ($max_w) {
case (intval(get_option('large_size_w'))):
$suffix = 'large';
break;
case (intval(get_option('medium_size_w'))):
$suffix = 'medium';
break;
case (intval(get_option('thumbnail_size_w'))):
$suffix = 'thumbnail';
break;
default:
$suffix = 'other';
}
}
It’s a hack, unfortunately, instead of a plugin, but it works for me so far.