Posted on Jun 5, 2011 in WordPress | 0 comments
Ever have this problem as a web designer? You’re doing to do a quick crop of a small image in the WordPress Media Library, so you pull it up in the Media Library, click “Edit Image,” click and drag to form the “rubber band” around the area you want to crop to… and the “crop” button is disabled.
WordPress, for some reason, doesn’t allow you to crop images smaller than the thumbnail size. If your Thumbnail image size is set at 150×150 pixels, for example, then you cannot crop an image unless the size of the rubber band is at least 150 pixels tall or 150 pixels wide.
There are several approaches to take to resolve this:
That’s right. Open it on your computer in your favorite image editor (downloading it first if necessary), saving it and uploading it again. But the whole point of having the crop tool in the WordPress Media Library is to quickly make those minor alterations on the fly without needing a separate program, right?
In the WordPress admin control panel, you could go to Settings > Media and then alter the dimensions for Thumbnail size images. However, you probably don’t want to make a site-wide settings change just to help you fix one image.
You could always dig through the WordPress core PHP files and fix the problem yourself… but that would take far, far more time than any of the other approaches, may cause bugs, and the next time you update WordPress the change would be lost.
This is a dirty, dirty solution, but it can be faster than making the changes locally on your computer.