Preparing Images Before Uploading to WordPress
Before uploading an image to WordPress, it’s best to optimize it. Optimizing means reducing the resolution to 72ppi, resizing to be compatible with the maximum column widths on your website, and compressing the image by saving it as a JPG, PNG, or GIF. Your website will load faster with optimized images.
How do you figure out the maximum sizes? On most websites that I design, the maximum width of the site container is 1140 pixels. But there is always some left and right padding, so on a full width page, the maximum width is usually between 1080 and 1100 pixels. On pages with sidebars, the maximum width of the main content area is around 740 pixels. If you know how to use Firefox Firebug or Chrome Developer tools, you can figure out these widths. Otherwise, ask your web designer to give you the measurements.
I use Photoshop for optimizing. If you don’t have Photoshop, there are many free options that you can try, such as:
Preview: one of several free applications pre-installed on new Macs. Preview is often used as the default PDF viewer. But, it can also be used to resize your images. Go to the TOOLS menu > Adjust Size … You’ll still need to compress the image, though, with another tool.
EWWW Image Optimizer: This is my newest tool. Install as a WordPress plugin to automatically optimize new uploads; it can also optimize what’s already in your media library. I’ve been impressed by how well it compresses files and improves site speed.
ImageResize: Free, online utility that resizes, crops, compresses, converts, and rotates images. The clean interface and numerous features make this an attractive option.
Image Optimizer: This free, online application can resize and compress files.
Photoresize Pro: A photographer client has used this for years. It’s not free, but very inexpensive.
You may notice that JPG files are smaller than PNGs. Both file formats are great for continuous tone images, but use PNGs only when you need transparency, like masking out the background. In Photoshop, the SAVE FOR WEB (File > Save For Web) option provides better compression than the standard SAVE AS… My favorite presets are:
- JPEG High – High Quality 60, Optimized
- PNG-24 – PNG-24, Transparency
Select Size When Inserting into Post or Page
Even after uploading an image to WordPress, there are several ways you can resize it. To insert an image into a post or page, click on the ADD MEDIA button. You’ll have the option of selecting a file from your media library or uploading a new file. In either case, look at the bottom of the right panel to see the attachment display settings. The default sizes are in a drop-down menu. Depending on your theme, “full size” could mean the width of the entire site container, the width of the main content area, or the size of the image itself. Scroll to the size you want and then click on the INSERT INTO POST button directly underneath the drop-down menu.
Change Size After Inserting into Post or Page
Click on the image and you’ll see 2 small buttons in the top left corner. The “X” will delete the image. The pencil icon will open a new window showing image details. On the left side of the window, select another of the default sizes. Click UPDATE.
Rather than selecting another default size, look on the right side of the window where you can edit the original. On the right side of another new window is where you can scale the image. There are other options as well, including flipping, rotating, and cropping.
What tools do you use for image optimizing?
Do you have any favorite tools for image optimizing? What method do you prefer for resizing images in WordPress? Please share your thoughts and questions!