Plugin upscales images that are too small
-
Hi there,
I really like the plugin and its ease of use, great work!
It seems like I stumbled over a bug, since I couldn’t find a cure for the behavior. I registered some additional image sizes, one of them being 900×450. When I upload an image smaller than those dimensions (say: 640×480) and edit it with Crop Thumbnails, the plugin warns me that the original images is too small for the largest size (which is correct). But nevertheless it creates an upscaled version of the image in 900×450, which then is of poor quality.
In my functionality I make use of
wp_get_attachment_metadata()
, but I cannot rely on the sizes the function returns for edited images, since there might be upscaled versions in the array. I will now do a little workaround and check each created image size against the original file’s dimensions before use. However it would be cool if the plugin took that into account and wouldn’t add upscaled images altogether. Or can I opt out of that option somewhere and I just didn’t see that?Thanks
Thomas
- The topic ‘Plugin upscales images that are too small’ is closed to new replies.