Tutorials WordPress

How to Edit an Image in WordPress: Crop, Scale, Rotate, Flip, Resize & Restore


Written by

Dave Warfel

Reading Time

9 minutes

If you buy something from one of our links, we may earn a commission.

Follow along as we answer all your questions related to editing images in WordPress. We’ll show you how to crop a WordPress image, as well as scale, rotate, flip, restore, delete and replace one. You’ll also learn how to edit the thumbnail only, or edit the main image and leave the thumbnail untouched.

And finally, we’ll cover common reasons why the WordPress edit image feature might not be working—and of course, show you how to fix them. Use the table of contents below to jump directly to that section. Or just skip to our video playlist.

  1. Why edit images in WordPress?
  2. How to access the WordPress image editor
  3. Image editor toolbar/buttons
  4. Scale an image
  5. Crop an image
  6. Rotate an image
  7. Flip an image
  8. Restore the original image (revert all edits)
  9. Replace an image (keep the same file name)
  10. Delete an image
  11. Edit image thumbnails
  12. Image editing not working?

01Why Edit Images in WordPress?

Let’s be honest. If you’re a graphic designer, professional photographer or even just an avid Photoshop user, you probably won’t spend much time editing images in WordPress. Using professional image editing software has a lot more benefits.

However, a majority of WordPress users don’t have access to any special software, and just need to make a few minor adjustments to their images. The WordPress image editor is great because:

  • it’s free
  • it’s easy to use
  • it doesn’t require any additional software
  • it saves a copy of the original image
  • you don’t have to re-upload your image after making changes

02How to Access the WordPress Image Editor

The WordPress image editor is found in your WordPress admin area.

  • Login to your site
  • Navigate to Media > Library
  • Click on the image you’d like to edit
  • Click the button underneath the image that says Edit Image
Select an image in WordPress media library
Navigate to your Media Library, then select an image to edit
Edit Image button in WordPress
Click the “Edit Image” button under the image

03WordPress Image Editor Toolbar/Buttons

Before we talk about how to use each image editing function, I want to briefly explain what each button does.

Button Action Description
WordPress crop image button Crop Remove parts of the image from the top, right, bottom or left sides.
WordPress rotate image counter clockwise button Rotate Counter-clockwise Rotate the image 90° counter-clockwise (to the left)
WordPress rotate image clockwise button Rotate Clockwise Rotate the image 90° clockwise (to the right)
WordPress flip image vertical button Flip Vertically Flip the image vertically (top becomes the bottom, bottom becomes the top)
WordPress flip image horizontal button Flip Horizontally Flip the image horizontally (left side becomes the right, right side becomes the left)
WordPress image undo button Undo Undo your previous image change
WordPress redo image button Redo Redo your last image change

Now that you understand what each button does, let’s talk about how to use each one to achieve your desired effect.

04How to Scale a WordPress Image

What does it mean to “scale” an image?

To scale an image is to reduce it’s overall size (in pixels), while retaining it’s aspect ratio. No parts of the image are removed; you are simply making the entire image smaller in size.

When scaling an image, you choose to reduce either the width or the height. WordPress will automatically calculate the other value.

For example, if your image is 2000px x 1000px, and you scale the width to 1000px, the height will automatically adjust to 500px.

In WordPress, you should always scale an image before editing it in any other way.

WordPress scale image options
How to scale a WordPress image in the Media Library

Follow these steps to scale an image in WordPress:

  1. In your Media Library, click on the image you’d like to scale
  2. Click the Edit Image button located below the image
  3. In the top-right corner, under “New Dimensions,” enter a new value for either the width or the height
  4. Click the Scale button

The image is automatically resized to your new dimensions.

05How to Crop a WordPress Image

IMPORTANT: The crop button is disabled at first. Before you can use it, you need to select the area on your image that you want to crop.

Follow these steps to crop an image:

  1. In your Media Library, click on the image you’d like to crop
  2. Click the Edit Image button
  3. Click, hold & drag your cursor to select the area of the image you’d like to keep
  4. Click thecropbutton
  5. Click the Save button
How to crop a WordPress image
How to crop a WordPress image from your Media Library

06How to Rotate a WordPress Image

To rotate an image in WordPress:

  1. Select the image you’d like to rotate
  2. Click the Edit Image button
  3. Click one of the rotate buttons to rotate your image clockwiseWordPress rotate image clockwise button or counter-clockwiseWordPress rotate image counter clockwise button
  4. Click the Save button
Rotate a WordPress image
How to rotate a WordPress image

07How to Flip a WordPress Image

To flip an image in WordPress:

  1. Select the image you’d like to flip
  2. Click the Edit Image button
  3. Click one of the flip buttons to flip your image horizontallyWordPress flip image horizontal button or verticallyWordPress flip image vertical button
  4. Click the Save button
WordPress flip image animation
How to flip an image in WordPress (horizontally)

08Restore a WordPress Image to its Original Size

After you make changes to your image in WordPress, you have the option to revert back to the original image. This will discard all edits you’ve made to your image, however, it will not delete the edited images from your server.

Restore original image WordPress
How to restore your original image in WordPress

To restore a WordPress image:

  1. Click on the image you need to restore
  2. Click the Edit Image button
  3. Click the Restore Image button in the right panel

This button will only appear if you’ve previously edited your image.

09How to Replace a WordPress Image & Retain the File Name

By default, WordPress does not allow you to replace an image and keep the same file name. If an image with that file name already exists, it will append a -1 to the file name.

However, you can use a plugin to replace a WordPress image and keep the file name. This will completely override the previous WordPress image with the same file name.

WordPress replace media button
This button is added to your Media Library when using the Enable Media Replace plugin

To replace an image & keep the file name:

  1. Install & activate the Enable Media Replace plugin
  2. Navigate to your Media Library
  3. Click on the image you’d like to replace
  4. In the right panel, under “Replace Media,” click on the Upload a new file button
  5. Then click the Choose File button, and select your replacement image
  6. Make sure “Just replace the file” is selected
  7. Click the Upload button

Congrats! You have successfully replaced your image, kept the same file name, and do not have to worry about updating any references to the image.

Clear your cache: You’ll need to clear your cache to see the new image. If you’re using a caching plugin, clear your site’s cache. You will also need to clear your browser’s cache.

10How to Delete a WordPress Image

To delete an image from your WordPress Media Library:

  1. Click on the image you’d like to delete
  2. In the right panel, click on Delete Permanently
  3. You’ll see a confirmation message that says, “You are about to permanently delete this item from your site. This action cannot be undone.”
  4. Click OK to confirm
Delete a WordPress image
How to delete an image from your WordPress Media Library

11Editing WordPress Thumbnail Images

There’s another great image editing feature of WordPress that many people don’t know about. When editing an image, you have two options how to handle image thumbnails:

WordPress image thumbnail settings
Available settings for WordPress image thumbnails
  • only edit the thumbnail, leaving the main image untouched
  • only edit the main image, leaving the thumbnail untouched

What is a thumbnail? WordPress thumbnails are smaller, usually square, versions of your main image. They are automatically created each time you upload a new image.

By default, a WordPress thumbnail image is 150px x 150px, and cropped as a perfect square. (You can adjust this on the Settings > Media screen.)

WordPress Thumbnail Settings

In the WordPress image editor, you have 3 options. You can apply changes to:

  • All image sizes
  • Thumbnail
  • All sizes except thumbnail

Just above these settings, WordPress shows you a preview of your current thumbnail (see example above).

Edit Thumbnail Only

To just edit your WordPress thumbnail:

  1. Navigate to your Media Library and click on the image whose thumbnail you’d like to edit
  2. Click the Edit Image button
  3. In the right panel, under Thumbnail Settings, choose “Thumbnail”
  4. Then proceed to make your image edits
  5. Click the Save button

Edit Main Image but Not the Thumbnail

If you’d like to edit your WordPress image without affecting the thumbnail:

  1. Navigate to your Media Library, select an image, and click Edit Image
  2. In the right panel, under Thumbnail Settings, choose “All sizes except thumbnail”
  3. Make your image edits
  4. Click the Save button

12WordPress Image Editing Not Working?

If the edit image feature of WordPress is not working for you, here are a few things that might be going on, and how you can fix them.

I can’t crop an image in WordPress

If the crop buttonWordPress crop image buttonis disabled, or greyed out, it is likely because you haven’t chosen the area on your image that you want to crop. You need to select part of your image before you can crop it.

Place your cursor at the top-left point where you want to start your crop. Click, hold and drag your cursor down and to the right. Release your mouse when you’ve selected your crop area. Now the crop button should be clickable.

I can’t scale my WordPress image larger

Images can only be scaled down, not up. This is because scaling up would result in a pixelated image. When taking pictures for the web, I recommend taking them with a resolution between 2000-3000px wide. You can scale these images down to reduce their file size (read why in our SEO guide), but they’re also high enough quality to use as-is.

How do you make pictures smaller on WordPress?

There are two ways I recommend making your WordPress images smaller:

  • Adjust your default Media Settings (future uploads only)
  • Use the ShortPixel plugin (existing & future uploads)

1. Adjust Default Media Settings

  1. Login to your WordPress admin area
  2. Navigate to Settings > Media
  3. Change the pixel values for your image sizes
  4. Click the Save Changes button

WordPress image sizes in Media Settings

Now, when you go to insert an image onto a WordPress post or page, choose your preferred image size.

WordPress attachment image sizes animation
How to change the image size when inserting into a WordPress post

2. Use the ShortPixel Plugin

If you want to adjust the image sizes for all previous uploads, you can use the ShortPixel plugin. It’s free for a limited number of images, but also really affordable if you have hundreds of images on your site. Use this link for a discount.

  1. Install the ShortPixel plugin
  2. Navigate to Settings > ShortPixel
  3. Check the box for Resize large images
  4. Enter maximum image size values for width & height
  5. Click Save and Go To Bulk Process
  6. Click the large Start Optimizing button at the top of the screen

ShortPixel image resize option

This will resize all of your images based on your ShortPixel settings.

I hope you found this image editing guide helpful. If you’re having an image editing issue in WordPress that I didn’t cover, please leave a comment and I’ll help you solve it. Or check out the entire free video course on YouTube.

Dave Warfel

LinkedIn  •  X (Twitter)Dave has been working with WordPress since 2011. He's built 100s of client sites and almost a dozen of his own. He's tested almost every plugin you can think of, hosted with at least 10 different companies, and gone down every SEO rabbit hole you can imagine. When's he's not tinkering with new software, you'll find him in the mountains of Colorado, trail running, summiting peaks, and rippin' downhills on his mountain bike. 🏔️🏃🚴🤸

13 responses to “How to Edit an Image in WordPress: Crop, Scale, Rotate, Flip, Resize & Restore”

  1. Suresh Avatar

    Since I’m a newbie to wordpress. This article really helped me a lot. I’m just having one doubt. Is there any way to resize the smaller image to large size in wordpress. Recently Google updated their terms to display the large image in amp pages. So All my AMP pages are showing warning as “Image size smaller than recommended size”. Here is my website.

    1. Dave Warfel Avatar

      In WordPress, there is no way to make an image larger. There are some programs out there that might claim to do this, but they will almost always come up pixelated.

      You just can’t add pixels to an image. It just doesn’t work.

  2. Jaime Estefanía González Avatar
    Jaime Estefanía González

    Thanks for your article, it is very practical. I need to restore many images that have been cropped and scaled. Thanks to you article now I know how to do it one image at a time. Is there a way to bulk restore the original images all at once?


    1. Dave Warfel Avatar

      Hi Jaime. That’s a good question.

      If you scaled & cropped your images yourself (manually, one at a time), just in the WordPress Media Library, than I don’t know of a good way to restore them in bulk. Some people have mentioned adjusting the Settings > Media sizes back to how you want them, then using the Regenerate Thumbnails plugin to regenerate all your images. That could work, depending on the variety (or lack thereof) of your image’s sizes.

      If your images were modified/optimized by ShortPixel, you can use the “Bulk ShortPixel” tool (in the Media menu) to bulk restore your entire Media Library. But that’s only if you want to revert changes made by ShortPixel. It won’t help you with manually scaling/cropping you’ve done yourself.

      Sorry. I wish I had a better answer.

  3. Sol Avatar

    Hi Dave:

    Thanks for setting this process out in such an approachable manner. I was able to follow it without any trouble.

    Here’s my problem: I’ve been following these steps, but every time I save my resized, cropped image, it keeps popping back to the original! Won’t quite fill the image box on the page, either — there’s still some empty space between the edge of the image and the box border. Makes it exceeding difficult to square off adjacent images, as I’m sure you can understand.

    What do I do?

    1. Dave Warfel Avatar

      Sol, I’m not sure why your image edits are being reverted back to the original, but…

      As for the spacing around your images, that is probably caused because images, by default, are set to display: inline;. If you change this to block, that will solve the problem.

      img {
      display: block;
  4. Shilpa Sundhar Avatar
    Shilpa Sundhar

    You have mentioned that we can’t upscale the image in wordpress but now many publisher need that option just because Google have updated the featured image size for AMP pages. So if any of the page is having the featured image size lesser than the specification then it is showing waring in the search console. So is there any plugin or any other way to up scale the existing featured image in wordpress. My site is also facing the featured image problem for AMP pages.

    1. Dave Warfel Avatar

      I have heard of tools out there that do this, but I don’t know what they are.

      It’s impossible to upscale an image precisely, because you can’t add pixels that don’t exist. You could probably find a program that uses an algorithm to guess what extra pixels to add in-between existing ones, but it won’t be perfect.

      Also note that the message in Search Console is just a warning. It’s not an error. Things should still work just fine in AMP, even if your image is less than 1200px wide.

      However, I can understand how you’d want to heed Google’s warnings, but I’m afraid there is no easy way to upscale all existing images. You’ll need to upload new ones that fit the recommended dimensions.

  5. Michael Choi Avatar
    Michael Choi

    Hey Dave, Thanks for sharing this article. I found it very useful. I liked the way you have described everything. Please make a comparison blog for the WordPress Image Editor plugins. Cause there are many plugins available like WP Paint, DigiWidgets etc and I couldn’t find enough practical tutorial on these. So, it would be great if you can do that. Thanks

    1. Dave Warfel Avatar

      Thanks Michael. I’ll keep this article idea in mind for the future. Thanks for sharing a few of the existing plugins. It gives me a good place to start if I decide to write a comparison.

  6. Rakib Avatar

    Your article was good. I followed it but i need something new. Will you tell me the new process?

    1. Dave Warfel Avatar

      Not sure what you mean. I’m pretty sure the method of editing images in WordPress hasn’t changed in the past several years.

    2. Alam Avatar

      he will tells you

Leave a Comment