It looks like you're new here. If you want to get involved, click one of these buttons!
Do you think it would make sense for Image::Resize not to make images larger, or to offer a flag that inhibits upsizing? I've been using it to downsize uploaded images, but it turns out some are smaller than expected and are ending up blurry.
For that you'd need to inspect the image dimensions via getimagesize(), which is probably best done outside of Image::resize() since it has the ability to resize in a variety of ways.