Currently, lines 378 -380 of media.php contains this line:
// if the resulting image would be the same size or larger we don't want to resize it
if ( $new_w >= $orig_w && $new_h >= $orig_h && !$allow_resize)
return false;
That obviously makes a lot of sense for a typical setup, but I'm working on a photography site where admin will be uploading very high-quality JPGs that are the right dimensions for the Large size thumbnail, but the image quality is too high for web use.
Essentially, I'd like WordPress to create a large thumbnail that's the same size as the original (which the core code prevents it from doing). I've seen a few solutions floated around, but they all involve replacing and destroying the original, which I don't want to do.
Any tips on where to start?