DooFiles
Edit images
How to edit images in the DooFiles media viewer: rotate, flip, crop and resize them, change their format and quality, remove their metadata, and save the result as a copy or in place of the original, including the rules for images of the Media Library.
Overview
DooFiles lets you edit an image right in the media viewer, without downloading it: rotate it, flip it, crop it, make it smaller, change its format and quality, and remove the information stored in it, such as the camera and the location.
Everything you do is a preview until you save. Then you choose to save a copy next to the original, or to put the edited image in place of the original. DooFiles edits with the image editor of your server, the same one WordPress uses for the Media Library.
[SCREENSHOT_HERE: The image editor of the media viewer, with a photo, the crop frame in 1:1, the proportions above the bar of tools, and Cancel, Replace original and Save copy at the top]
Which images you can edit
| Can be edited | Cannot be edited |
|---|---|
| JPEG, PNG, WebP, GIF and AVIF images, when the image editor of your server can open them | SVG, ICO and BMP images |
| Images up to 50 megapixels, when your server has enough memory for them | The sizes WordPress makes of the images of the Media Library, such as photo-300x200.jpg, photo-scaled.jpg or photo-rotated.jpg. Edit the original image instead |
EDIT does not appear when the image cannot be edited, when DooFiles is in read-only mode, or when your license is not active.
Start editing
- Open the image in the media viewer: click its name in the list.
- Click EDIT at the top.
The viewer changes for editing:
- the tools show in a bar at the bottom;
- the top bar shows Cancel, Replace original and Save copy;
- next to the name, the size of the image before and after your changes, such as 4032 × 3024 → 1080 × 1080;
- the arrows to move between files, the zoom and the Details panel are off until you leave.
The tools
| Tool | What it does |
|---|---|
| Rotate left and Rotate right | Turn the image 90 degrees |
| Flip horizontally and Flip vertically | Mirror the image from left to right, or from top to bottom |
| Crop | Keeps only a part of the image |
| Resize | Makes the image smaller |
| Format | Changes the format and the quality, and removes the metadata |
| Undo | Undoes the last change |
The tool that is open shows lighter in the bar.
Rotate and flip
Click Rotate right to turn the image 90 degrees clockwise, or Rotate left to turn it the other way. You can also press R to rotate right, and Shift + R to rotate left.
Click Flip horizontally or Flip vertically to mirror the image.
If you already chose a crop, the frame turns and flips together with the image, so it keeps the same part.
Crop
- Click Crop. A frame shows over the image. What stays outside the frame looks darker and slightly blurred, so you can see what you keep.
- Above the bar, choose a proportion:
| Proportion | Use it for |
|---|---|
| Free | Any shape |
| Original | The proportion of the image |
| 1:1 | A square, such as a profile picture |
| 4:3 | Classic photos |
| 16:9 | Wide images, such as video covers and banners |
Choosing a proportion places the largest frame of that shape in the center of the image.
- Drag the frame to move it, or drag the handles on its corners and sides to change its size. With a proportion other than Free, the frame keeps its shape.
- Click Crop again to stop changing the frame. It stays on the image, and the crop is applied when you save.
[SCREENSHOT_HERE: The crop frame over a photo, with the handles, the thirds grid inside and the outside darkened and blurred]
Resize
- Click Resize.
- Type the new width or height, in pixels. With the lock closed, the other value follows, so the image keeps its proportion. Click the lock to open it and type both values.
- The size after the change shows next to the name.
An image can only get smaller: DooFiles never makes it bigger, because that would only make it blurry. If you crop after resizing, the size goes back to the size of the crop.
Format, quality and metadata
Click Format to choose how the image is saved:
| Setting | What it does | Default |
|---|---|---|
| Format | Keep the format the image has, or change it to JPEG, PNG or WebP | The same format |
| Quality | For JPEG and WebP: from 30 to 100. Lower values make lighter files, with less detail | 82 |
| Remove metadata (camera, location…) | Removes the information stored in the photo, such as the camera, the date and the GPS location | Off |
On many servers, saving an edited image always removes its metadata, because the image editor of the server does not write it. Turn on Remove metadata when you need to be sure that the location of a photo is gone.
To see what a photo has before you edit it, click INFO in the viewer. See Details of a file.
Undo and cancel
- Click Undo, or press Ctrl + Z (Cmd + Z on a Mac), to undo the last change. You can undo every change you made since you clicked EDIT.
- Click Cancel, or press Escape, to leave the editor without saving. The image stays as it was.
Save your changes
| Button | What it does |
|---|---|
| Save copy | Saves the edited image next to the original, with -edited added to its name, such as photo-edited.jpg. If that name is taken, DooFiles adds a number. The original does not change. You can also press Enter |
| Replace original | Puts the edited image in place of the original, with the same name, after you confirm |
When you click Replace original, DooFiles asks Replace the original? and tells you that the original goes to the Trash, where you can restore it. Click Replace to go ahead.
While DooFiles saves, the image fades and blurs, with a loading circle over it. Then the saved image shows in the viewer, and DooFiles says Saved as “photo-edited.jpg”. or Image replaced. The original is in the trash.
Some rules:
- Replace original keeps the format. To save the image in another format, use Save copy.
- If the image belongs to something WordPress needs, such as the active theme, DooFiles asks you to confirm first. See Files WordPress needs.
- Each saved edit shows in the Activity log as Edited image.
Images of the Media Library
The images in wp-content/uploads belong to the Media Library of WordPress. For each one, WordPress keeps several sizes, such as photo-300x200.jpg, and your posts use them. If the original changed and those sizes did not, your posts would keep showing the old image.
That is why, by default, images of the Media Library can only be saved as a copy:
- the top bar shows Media Library instead of Replace original;
- Media Library opens Media › Library in a new tab, with the image searched for. There, WordPress can replace or edit the image and make its sizes again.
The sizes WordPress makes of each image open in the viewer, but cannot be edited on their own.
An administrator can change this with Protect Media Library images, in DooFiles › Settings › Security:
| Setting | What it does | Default |
|---|---|---|
| Protect Media Library images | On: images in wp-content/uploads can only be saved as a copy. Off: they can be replaced too, and when the image is in the Media Library, DooFiles makes its sizes again | On |
Developers can also set it with the doofiles_protect_media filter. See Filters and constants.
Photos taken with a phone
Phones often save photos turned on their side, with a note that tells the screen how to show them. DooFiles reads that note before applying your changes, so the image you save looks exactly like the one you saw while editing.
Keyboard shortcuts
| Keys | What they do |
|---|---|
| R | Rotate right |
| Shift + R | Rotate left |
| Ctrl + Z (Cmd + Z on a Mac) | Undo |
| Enter | Save copy |
| Escape | Cancel and leave the editor |
Troubleshooting
| Problem | What to do |
|---|---|
| EDIT does not appear | The image is SVG, ICO or BMP, it is a size WordPress made, DooFiles is in read-only mode, or your license is not active. See Which images you can edit |
| I only see Media Library, not Replace original | The image is in the Media Library. Save a copy, or replace it from Media › Library. See Images of the Media Library |
| Replace original is dimmed | You chose another format. Save a copy instead, or keep the format |
| This image is too large to edit on this server. | The image has more than 50 megapixels, or your server does not have enough memory for it. Edit it on your computer |
| This server cannot edit this image. or This image cannot be edited. | The image editor of your server cannot open this type of image. Edit it on your computer |
| This server cannot save images in that format. | Your server cannot save that format, such as WebP. Choose another format, or keep the one the image has |
| This is a size WordPress made of another image. Edit the original image instead. | Open the original image, without the size in its name, and edit that one |
| I cannot make the image bigger | DooFiles only makes images smaller, so they do not get blurry |
| The saved photo has no camera or location | The image editor of your server removes the metadata when it saves. This is normal |
| I replaced an image by mistake | Restore the original from the Trash |
Need more help? Open a support ticket.