Using Images In WordPress – How To Reduce Image File Size In Your Server

Learn how to create and save images correctly, how to reduce your images without compromizing image quality and how to optimize the size of your image files to keep your site running smoothly.

Using Images In WordPress – How To Reduce Image File Size In Your Server

Using Images In WordPress - How To Reduce Image File Size In Your ServerImages uploaded to the WordPress Media Library are stored in your server.

If your website uses lots of images or you run an e-commerce site using an application like WooCommerce, for example, your site may have to store hundreds or even thousands of product images.

Uploading loads of images to your server can lead to an excessively large image folder. This can cause your site to exceed its hosting quota, create problems with backups, slow down page loading times, and cause a number of other issues.

In this tutorial, we’ll show you how to create and save images correctly, how to reduce your images without compromising image quality and how to optimize the size of your image files to keep your site running smoothly.

Using Large Image Files On Your Website

If you plan to use large image files or lots of images on your website, we recommend not uploading and storing these in your WordPress installation, but using a cloud storage service like Amazon S3, Dropbox, etc. instead and adding the image via the Add Media ‘Insert from URL’ tool …

Use an external storage service for adding large images to WordPress!

(Use an external storage service for adding large images to WordPress!)

To learn how to use the Add Media ‘Insert from URL’ tool, see this tutorial:

Depending on the applications you have installed on your website, you may have no other option but to upload and store images in your Media Library.

In this case, you have to make sure that you are not uploading images that are larger than necessary …

These images are way too large!

(These images are way too large!)

Let’s see why this is a problem …

Media File Management

Images, videos and other media uploaded to your website are normally managed through the WordPress Media Library …

WordPress Media Library

(WordPress Media Library)

Your media settings are configured in your Media Settings section. Here you can specify whether to store media uploads into month and year-based folders or not …

Media Settings

(Media Settings)

Once media files are added to the Media Library, they are then uploaded to your server and stored in your wp-content > uploads folder, which you can access using applications like FTP or via your cPanel’s File Manager

Media files like images are stored in your server

(Media files like images are stored in your server)

Uploading loads of large images (and other media files) to your Media Library, then, will cause your server’s disk storage to swell up in size …

Storing large media files in your server can cause loads of problems!

(Storing large media files in your server can cause loads of problems!)

Storing large media files in your server can lead to problems like backing up files and slow down your website’s performance when loading web pages.

Important

To avoid problems, large media files should be uploaded to the Amazon S3 account or an external service like YouTube (videos) and links to these files then embedded into web content using the WordPress Add Media tool.

Before we look at ways to reduce image file size, let’s go over some image file basics.

Image Specifications & Guidelines

You can avoid problems by setting out specifications and guidelines for using images in your website.

These include:

  • Understanding image size vs image resolution.
  • Understanding different image formats and when to use these.
  • Specifications for digital and print images and understanding the difference between these.

Let’s briefly go through each of the above:

Image Size vs Image Resolution

Image size refers to the dimensions of an image and is usually expressed in terms of pixels or points.

Image resolution refers to the number of pixels that can fit inside a specific area of a screen or printed surface and is normally expressed in terms of pixels per inch (ppi) or dots per inch (dpi).

For example, the dimensions of the image below are 680 pixels wide x 400 pixels tall …

Image Dimensions

(Image Dimensions)

Using an image editing tool like Photoshop, we can see that the resolution of this image is 72 pixels per inch …

Image Resolution(Image resolution) 

Images for printed publications (e.g. magazines, brochures, etc.) need to be high resolution (e.g. 300 dpi), but most computer screens work really well with low resolution images (72-96 dpi). This includes images like photos, screenshots, logos, etc.

Errors using images occur when confusing image size with image resolution. You can have a very large image with a low resolution (which will not work for print – images will become pixelated), or upload high-resolution images to your website, which will significantly and unnecessarily increase the size of your server’s database.

Image Format

Common formats used for saving images for use in websites include .jpg, .png, and .gif.

For practical purposes and simplicity’s sake, here’s a good commercial rule of thumb when deciding on which image format to use:

  • Save most images as .jpg unless your images need to have a transparent background.
  • If you want your image to have a transparent background, save it as a .png.
  • Animated images (e.g. advertising banners) are normally saved as a .gif.

You can learn more about different image formats here.

Digital Image Specs

If you plan to work with a large number of images that must be uploaded to your Media Library and stored in your WordPress installation (e.g. product images in WooCommerce), then follow the specs below to ensure that your server’s disk space won’t become excessively large and difficult to manage:

  • Image File Size: Aim for image file sizes no larger than around 500 kb.
  • Image Resolution: 72-96 ppi.
  • Image Dimensions: Try keeping your maximum image width to 900 – 1280 pixels. Typically, a width of 600-800 pixels is sufficient for many product images and screenshots.
  • Image Format: .jpg (maximum quality), unless image requires a transparent background. If image requires a transparent background, then save as .png with transparency turned on.
  • Image Mode: RGB

Print & Display Advertising Image Specs

High-quality printing or display advertising (e.g. magazines) typically require high resolution images (e.g. 300 dpi) saved in CMYK image mode.

Tip

  • If creating images for logos or company artwork, create these as high resolution images in large sizes (e.g. 5,000 pixels wide) as these images will probably be used in print, but make sure to reformat these to digital image specs when using these in digital artwork or uploading to your website.
  • Always work from larger to smaller dimensions and from higher to lower resolutions. Reducing image sizes and resolutions will retain image quality but not the other way round (going from smaller to larger size or resolution will make image appear blurred or pixelated).
  • When creating images from scratch, set the dimensions and resolution before you start.

You can set image size and resolution in Photoshop using the Image > Image Size dialog box …

Photoshop > Image Size

(Photoshop > Image Size)

How To Reduce Image File Size

Before making any changes to images that have already been uploaded to your website and are currently being used in your content, do the following:

  • Back up your website.
  • Download folders containing images to your hard drive. If working in CPanel’s File Manager, compress and download a copy of the image folders to your hard drive.
  • Extract and make a copy of these image folders. We’ll edit images in these copied folders to make sure that nothing happens to the original files.
  • Create a folder inside your working images folder where you will edit and save images to (call the folder something like “reduce these”).
  • Select all large images above a certain file size (e.g. 500 kb) and copy these to your working folder.
  • Begin systematically opening and editing these images in an image editing application like Photoshop.
  • Save the edited image in your image editing folder.
  • Replace large file-sized images on your website with the smaller file-sized images you have just created.
  • After replacing all images on your website, review all pages to make sure that all images have been replaced correctly.
  • Delete large images from your server.
  • Go back to your website and check pages and content to make sure that no images are missing in your content.
  • Your files should now be significantly reduced in size.

If you can’t see image file sizes in your hard drive’s image folder, do the following:

Open up the folder in your hard drive containing your images, then right-click in your folder and select View > Details

Select View > Details

(Select View > Details)

Now you can see all image file sizes listed …

List of images displaying image file sizes

(List of images displaying image file sizes)

The next step is to start reducing each image to a smaller file size …

Convert .png images to .jpg to reduce file size

(Reduce each file to a smaller size)

Let’s take a look now at ways to reduce image file sizes.

Save Files As .Jpg

Images saved in .jpg format normally result in smaller file sizes than the same image saved in .png format …

For example, if we save our example image as a .png

Image saved as .png

(Image saved as .png)

And then save the same image as a .jpg (maximum quality) …

Image saved as .jpg

(Image saved as .jpg)

You can see that the .png file has a larger file size than the .jpg image…

The .png image is larger than the same image saved a .jpg

(The .png image is larger than the same image saved a .jpg)

Keeping this in mind, here’s something you can do if you have unnecessarily saved lots of image files on your website as .png instead of .jpg.

Convert .png Images To .jpg

Locate and open a large .png file from your working images folder using your image editor (e.g. Photoshop) …

Open a large .png file

(Open a large .png file)

For this example, we have selected an image that is over 3 Mb in size (3,160 kb). If we apply the image specifications from our earlier section to this image, we can see that:

  1. The file doesn’t need to have a transparent background. It can be resaved as a .jpg image.
  2. The image dimensions are larger than necessary.

We can reduce this image file size

(We can reduce this image file size)

Let’s save this file as a .jpg image first and see how much we can reduce the image file size by …

Save the file as a .jpg

(Save the file as a .jpg)

By changing the file format from .png to .jpg, we have significantly reduced the image file size (from 3,160 kb to 900 kb) …

Same image, different file image sizes

(Same image, different file image sizes)

This reduced image, however, is still almost twice as large as the file size specifications we have set for our images (no larger than 500 kb).

Now we have two options. We can reduce image file size by:

  • Reducing file size dimensions
  • Reducing image quality

Reduce File Size Dimensions

Let’s repeat the above process, but this time, we’ll reduce file size dimensions before saving the image as a .jpg.

First, select the image and open the  ‘Image Size’ dialog box (Image > Image Size in Photoshop) …

Image > Image Size

(Image > Image Size)

Change the image dimensions to reduce the image size and make it fit within your specifications …

Reduce image dimensions

(Reduce image dimensions)

Now resave the image as a .jpg and look at the resulting file size …

Same image has been significantly reduced in size

(Same image has been significantly reduced in size)

We have reduced the image file size significantly.

Info

Resizing image dimensions in your web pages will not reduce the file size of the original image in your server. To reduce image file size, change the dimensions of the original image, then replace the original image in your server with your edited image …

Resizing images on your page does not reduce image file size

(Resizing images on your page does not reduce image file size)

Reduce Image Quality

Depending on what you plan to use your images for, reducing image quality by a level or two won’t make that much difference to the final result …

.jpg Image Quality Settings

(JPEG Image Quality Settings)

For example, here is a .jpg image saved using maximum quality image optimization settings (100%) …

JPEG Settings - Maximum Quality 100%

(JPEG Settings – Maximum Quality 100%)

Here’s the same .jpg image saved using the next level down (Very High) …

JPEG Settings - Very High Quality 80%

(JPEG Settings – Very High Quality 80%)

Here’s the same .jpg image saved using the next level down (High) …

JPEG Settings - High Quality 60%

(JPEG Settings – High Quality 60%)

Here’s the same .jpg image saved using the next level down (Medium) …

JPEG Settings - Medium Quality 30%

(JPEG Settings – Medium Quality 30%)

Here’s the same .jpg image saved using the next level down (Low) …

JPEG Settings - Low Quality 10%

(JPEG Settings – Low Quality 10%)

Although there’s not that much difference in the images, the difference in file sizes can be significant …

Same image different JPEG quality settings

(Same image different JPEG quality settings)

In addition to the above, you can also use the methods below to reduce image file size:

Crop Unnecessary Image Areas

If there are any excess areas around an image that are not required or essential, consider cropping the image to reduce image file size …

Crop excess areas around images to reduce file size

(Crop excess areas around images to reduce file size)

Check Image Resolution

Check to see if any large images uploaded to your website have been saved using a high image resolution and change the settings to reduce image file size …

Images for use in web content don't need very high resolutions

(Images for use in web content don’t need very high resolutions)

Using some or all of the above methods can significantly reduce the file size of your stored images …

Image file sizes can be significantly reduced to improve your website

(Image file sizes can be significantly reduced to improve your website)

Image Compression Plugins

In addition to using the methods described above to reduce image file size, if you have loads of images uploaded to your WordPress media library, we also recommend looking at image compression and optimization plugins.

WP Smush

Smush Image Compression and Optimization Plugin

(WP Smush Image Compression and Optimization Plugin)

WP Smush scans images that you upload (or have already added) to your site and automatically resizes, optimizes, and compresses these, removing unnecessary data before adding it to your media library.

This plugin strips hidden bulky information from your images and reduces file size without losing image quality.

WP Smush automatically optimizes images uploaded to WordPress

(WP Smush automatically optimizes images uploaded to WordPress)

For more information or to download the plugin, go here: Smush

We hope that you have found this information on resizing image file sizes useful. For more help on using images in WordPress, see the tutorials below:

How To Reduce Image File Size In Your WordPress Database

Get Thrive Leads for WordPress

***

"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum

How To Add An Image Gallery To WordPress

Want to insert multiple images into your WordPress posts and pages? Learn how to add an image gallery using the WordPress image gallery feature.

How To Add An Image Gallery To WordPressThis tutorial was created using an earlier version of WordPress. To be notified of content updates, subscribe to our updates list (see sidebar), or Like our Facebook page.

***

Are you looking for a way to insert multiple images or photos into your WordPress posts and pages?

Many people immediately go looking for a plugin, but did you know that WordPress has a built-in image gallery feature that lets you easily insert multiple images into your content and display these in a professional-looking grid-like gallery view?

If you want to learn how to insert a single image into your content, see the tutorial below:

Below is an example of an image gallery created using the native WordPress gallery feature …

Using The WordPress Image Gallery

In this tutorial, you are going to learn how to insert multiple images into your posts and pages using the WordPress image gallery feature.

How to Use The WordPress Image Gallery

The WordPress built-in image gallery feature lets you create multiple image galleries for displaying images on your posts and pages.

Why Use An Image Gallery?

By default, WordPress displays multiple images stacked above each other in your content. If you plan to add many images to your posts or pages, this won’t look great (or feel great) to users, as they will have to do quite a bit of scrolling down the page to view them all …

By default, WordPress users have to scroll to view multiple images in a post

(By default, WordPress users have to scroll to view multiple images in a post)

The WordPress image gallery displays thumbnail images in a grid layout, creating a better user experience …

The WordPress image gallery improves the look of your images

(The WordPress image gallery improves the look of your images)

Adding Multiple Images To WordPress Posts And Pages Using The WordPress Image Gallery – Step-By-Step Tutorial

To add an image gallery to a post or page in WordPress, create a new post or page or open up an existing one, then place your mouse cursor when you want the image gallery inserted and click on the Add Media button …

Using The WordPress Image Gallery

The Insert Media screen will open in a pop-up window. Click on the Create Gallery link as shown in the example below …

Using The WordPress Image Gallery

Select the images you want to include in your gallery (selected images will display a check mark on the upper right-hand corner) and click on the button labeled Create a new gallery at the bottom of the screen …

Using The WordPress Image Gallery

This will bring up the Edit Gallery screen …

Using The WordPress Image Gallery

There are a number of things you can do in the Edit Gallery screen:

You can add a caption to your images. To do this, just click on the field below the image where it says “Caption this image …” and type in your text …

Using The WordPress Image Gallery

You can reorder images using drag and drop …

Using The WordPress Image Gallery

Just click on an image and drag it to a new location, then release your mouse button. Your image will be placed in the new location …

You can reverse the order that your images display in your gallery by clicking on the Reverse order button …

Using The WordPress Image Gallery

You can remove images from your gallery hovering over the image with your mouse and clicking on the box marked with an “X” …

Using The WordPress Image Gallery

Gallery Settings

As well as the gallery edit options shown above, there are also a number of gallery settings that can be adjusted.

You can choose whether to link your images to an attachment page or the media file by selecting an option from the drop-down menu in the Link To section …

Using The WordPress Image Gallery

The image below shows the difference between selecting the ‘Attachment Page’ and ‘Media File’ options …

Using The WordPress Image Gallery

You can also specify the number of columns for your gallery by selecting an option from the drop-down menu in the Gallery Settings > Columns section …

Using The WordPress Image Gallery

The image below shows how different column settings display your images …

Using The WordPress Image Gallery

You can also specify whether your images should display in random order or not by ticking the Random Order checkbox …

Using The WordPress Image Gallery

The image below shows how images with Random Order option enabled display on your published post or page …

Using The WordPress Image Gallery

Once you have finished editing your image gallery and adjusting your settings, it’s time to insert your image gallery into your post or page …

Using The WordPress Image Gallery

Click on the Insert gallery button at the bottom of the Edit Gallery screen …

Using The WordPress Image Gallery

A placeholder image will be inserted into your content if using the visual editor …

Using The WordPress Image Gallery

If using the text editor, you will see a gallery shortcode inserted into the content (using gallery shortcodes is explained further below in this tutorial) …

Using The WordPress Image Gallery

To view your image gallery, publish or update your post or page …

Using The WordPress Image Gallery

Making Changes To Your Image Gallery

If you want to make changes to an existing image gallery, make sure that you are in the “Edit Post” or “Edit Page” screen, and click on the image gallery placeholder image.

This will display the Edit Gallery and Delete Gallery icons. Click on the Delete Gallery icon to remove your image gallery from your content, or click on the Edit Gallery icon to make changes to your existing image gallery …

Using The WordPress Image Gallery

We have already shown you how to make a number of changes to your gallery, such as adding captions, reordering or reversing the display order of images, removing images from the gallery and changing image gallery settings.

You can also add new images to your gallery by clicking on the Add to Gallery button as shown below …

Using The WordPress Image Gallery

You can add images that you have previously uploaded or upload new image files to your existing gallery. Once you have completed adding new images to your gallery, click on the Add to gallery button …

Using The WordPress Image Gallery

The new image will added to the gallery, as shown in the Edit Gallery screen …

Using The WordPress Image Gallery

Click the Update gallery button to update your gallery …

Using The WordPress Image Gallery

And then click on the Update button to republish your post …

Using The WordPress Image Gallery

Your image gallery is now updated with your new image(s) …

Using The WordPress Image Gallery

The WordPress Image Gallery: Using Shortcodes

WordPress supports various shortcodes for images and galleries. A shortcode is a code that lets you insert features, functionalities or scripts into WordPress posts and pages. Shortcodes can embed files or create objects into your posts or pages that would normally require lots of complex code using just one line.

Shortcodes are wrapped in square brackets ( [ ] ) as shown below …

Using The WordPress Image Gallery

Here’s the shortcode for the WordPress image gallery …

Using The WordPress Image Gallery

Inserting the gallery shortcode into your content …

Using The WordPress Image Gallery

Displays your image gallery when your post or page is published …

Using The WordPress Image Gallery

You can also display a specific image using the gallery shortcode using a shortcode that includes the image ID …

Using The WordPress Image Gallery

To find your image ID, do the following:

  1. Go to Media > Library
  2. Hover your mouse over an image
  3. The ID is displayed after “post=” in the status bar at the bottom of your screen, as shown below …

Using The WordPress Image Gallery

Add the shortcode where you want the image to appear in the content …

Using The WordPress Image Gallery

And your image will display when your post or page is published …

Using The WordPress Image Gallery

Additional Gallery Shortcode Options

You can customize your gallery using additional shortcode options, such as columns, id, size, link, include, exclude, orderby, order, itemtag, icontag, and captiontag.

Note: Before using any of the shortcode options above, make sure that you have “attached” the images you want to use in your gallery to a specific post or page …

Using The WordPress Image Gallery

If you need help attaching images to posts or pages, see this tutorial.

Using The WordPress Image Gallery

Here are some examples of gallery shortcodes you can use:

gallery columns

Using The WordPress Image Gallery

The above shortcode lets you specify the amount of columns you want your image gallery to display on your post or page. Simply enter the number of columns inside the quotation marks. The default value is 3. If columns are set to 0, no row breaks will be included.

gallery size

Using The WordPress Image Gallery

You can use the shortcode above to display your images as thumbnail, medium, large and full size. Simply enter one of these options inside the quotation marks:

  • thumbnail
  • medium
  • large
  • full
gallery id

Using The WordPress Image Gallery

The above shortcode allows you to display images attached to a post ID. By default, if no ID is specified, the gallery will display images attached to the current post. In the screenshot above, for example, the gallery would display all images attached to post 123.

If you need help finding a post or page ID, see this tutorial.

gallery include

Using The WordPress Image Gallery

We have covered using this shortcode in the earlier section of this tutorial. Include multiple images by inserting comma-separated IDs.

gallery exclude

Using The WordPress Image Gallery

You can exclude images by adding the above shortcode with comma-separated IDs for images that you don’t want to display. See the earlier section of this tutorial to learn how to identify image IDs in your media library.

gallery order

this lets you specify the sort order used to display thumbnails. You have the following options:

  • ASC (ascending)
  • DESC (descending)
gallery orderby

This option lets you specify how to sort your display thumbnails. By default, your image gallery uses “menu_order” to display images using the order you have specified when creating your gallery.

The options include:

  • menu_order (note: you can reorder the images by editing your image gallery)
  • title (order by image title, as specified in the Media Library)
  • post_date (sort images by date/time)
  • rand (display images in random order)
  • ID (order images by ID)

You can combine order and orderby in a single shortcode. For example …

Using The WordPress Image Gallery

The above shortcode will sort images by ID in descending order.

To sort images by date/time in ascending order, you would enter the shortcode below into your post or page …

Using The WordPress Image Gallery

And to sort images by image title in ascending order, you would enter the following shortcode …

Using The WordPress Image Gallery

For more information about the Gallery shortcode, refer to the official WordPress Codex here: http://codex.wordpress.org/Gallery_Shortcode.

Tip

For most users, the built-in WordPress gallery feature is more than ideal for their needs.

If you want to go beyond the default gallery, however, there are several plugins available for WordPress that can help you create beautiful-looking image galleries.

If you plan to use image galleries extensively throughout your site, you can use image gallery plugins.

You can search for WordPress gallery plugins inside your WordPress dashboard (Plugins > Add New), or the WordPress Free Plugin Repository …

WordPress Plugin Search - Image Gallery

(WordPress Plugin Search – Image Gallery)

Search the WordPress Free Plugin Directory for image gallery plugins below:

Congratulations! Now you know how to insert multiple images into your posts and pages using the built-in WordPress image gallery feature.

How To Add An Image Gallery To WordPress

Kitten images source: Pixabay (various authors)

Get Thrive Leads for WordPress

***

"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)

***

How To Add And Format Images In WordPress

Learn how to add and format images to WordPress posts and pages in this tutorial.

How To Add And Format Images In WordPressThis tutorial was created using an earlier version of WordPress and may contain outdated information. Please bookmark this page as we will be updating this tutorial soon!

To be notified of updates to our content, subscribe to our updates list (see sidebar), or Like our Facebook page.

***

Adding images to your content can help make your website or blog look more attractive, lively and professional. Images can also help to create a better impression with your readers and deliver a stronger presentation in your sales message.

To learn how to upload and use images in the WordPress Media Library, see the tutorial below:

To learn how to edit images in the WordPress Media Library, see the tutorial below:

Complete the tutorial below to learn more about using images in WordPress.

How To Add And Format Images In WordPress

There are several ways to source images for inserting into your posts and pages. You can:

  • Add an image from your site’s Media Library.
  • Upload an image from a folder on your hard drive.
  • Add the URL of an image stored in an image folder either in your own server or on another server (e.g. a remote file storage location like Amazon S3).

Useful Information

Make sure that you have permission to use image(s) on your site. Image licensing companies and owners of copyrighted images will take legal action against you if you use images on your site without permission or violate the terms and conditions of your licensing agreements.

If you need free images and royalty-free images for your content, see the tutorial below:

How To Add Images From Your WordPress Media Library

Make sure that you have already completed this tutorial.

To insert an image from your WordPress Media Library, go to your Posts or Pages section and open (edit) your post or page, then place your mouse cursor where you would like to insert your image into the content …

How To Add And Format Images In WordPress Posts And Pages

Click on the Add Media button above the content editor window …

How To Add And Format Images In WordPress Posts And Pages

A pop up window will display the Add Media options. Select the Media Library tab to view all media you have uploaded to your WordPress site …

How To Add And Format Images In WordPress Posts And Pages

Select All media items from the Media Library drop-down menu to view all media items uploaded to your site …

How To Add And Format Images In WordPress Posts And Pages

You can also view only the media items you have attached to your post or page by selecting Uploaded to this post from the Media Library drop-down menu …

How To Add And Format Images In WordPress Posts And Pages

Note: You can also use the Media Library drop-down menu to filter and display only images, audio, and video files.

Select the image you want to insert into your post or page and then click on the Insert into post button …

How To Add And Format Images In WordPress Posts And Pages

Your image will be inserted into your post or page …

How To Add And Format Images In WordPress Posts And Pages

Important

Note #1: You can also insert an image gallery from your media Library into your posts and pages.

To learn how to add multiple images into content in your WordPress posts and pages, see the tutorial below:

Note #2: To exit the Insert Media screen without performing an image action, just click on the “X” at the top of the window …

How To Add And Format Images In WordPress Posts And Pages

How To Upload Images From A Computer Hard Drive

To add your own images to a post or page, first, make sure that you already have an image created and ready to be uploaded or placed into an “images” folder on your hard drive.

Next, go to your WordPress Visual Text Editor and click inside the post or page where you want the image to be added. The image will be placed wherever your cursor is flashing.

Click on the Add Media button above the content editor window …

How To Add And Format Images In WordPress Posts And Pages

A pop-up window will display the Insert Media options. Select the Upload Files tab to display the media uploader, then either drag-and-drop your image file into the box that appears on the screen with a dotted border or click on Select Files to locate and upload your image …

How To Add And Format Images In WordPress Posts And Pages

For a detailed tutorial on using the WordPress Media Uploader, see this tutorial

Locate the image you want to upload, then select it and click Open in the File Upload window …

How To Add And Format Images In WordPress Posts And Pages

Your image will begin uploading …

How To Add And Format Images In WordPress Posts And Pages

Once your image has been uploaded it will display as the selected item. Click the Insert into post button …

How To Add And Format Images In WordPress Posts And Pages Your image will be placed into your post or page …

How To Add And Format Images In WordPress Posts And Pages

How To Add An Image From A URL

Disclaimer

Do not link to images hosted on an external server without permission – this is called hotlinking and it’s frowned upon by most webmasters and website owners, as it uses up their bandwidth and costs them money. You can set up your own external data storage account for hosting images and files remotely using a service like Amazon S3.

To add an image from a URL into a post or page, click on the Add Media button …

How To Add And Format Images In WordPress Posts And Pages

The Insert Media screen will open on your browser window. Click the Insert from URL link in the Insert Media menu …

How To Add And Format Images In WordPress Posts And Pages

Enter your image URL in the Insert from URL field, your image title in the Title field and click Insert into post

How To Add And Format Images In WordPress Posts And Pages

Useful Tip

If you use a content editor enhancing plugin like the TinyMCE Advanced plugin, you can quickly and easily add images into posts and pages by simply clicking on a menu icon …

How To Add And Format Images In WordPress Posts And Pages

This will bring up an Insert/Edit Image box like the one shown in the screenshot below, allowing you to enter an image URL, image description, title, etc. before adding the image into your post or page …

How To Add And Format Images In WordPress Posts And Pages

How To Format Images In Your Posts Or Pages

Once you have uploaded and added an image into your post or page using one of the methods shown above, the next step is to format your image so it displays well on your site.

In the next section, you will learn a number of different ways to format images in WordPress.

How To Format Images In The Insert Media Screen

Before adding an image into a post or page, the Insert Media screen gives you a number of options for editing and formatting your image file …

How To Add And Format Images In WordPress Posts And Pages

To learn more about editing media in the Media Library, see this tutorial

The Attachment Display Settings allow you to specify various formatting options for your image:

You can select an Alignment for your image …

How To Add And Format Images In WordPress Posts And Pages Left: Place the image on the left of your post or page content. Text is wrapped around the image …

How To Add And Format Images In WordPress Posts And Pages

Center: Center your image on the post or page. Text is not wrapped around the image …

How To Add And Format Images In WordPress Posts And Pages

Right: Place the image on the right of your post or page content. Text is wrapped around the image …

How To Add And Format Images In WordPress Posts And Pages

None: No image alignment. Text is not wrapped around the image …

How To Add And Format Images In WordPress Posts And Pages

You can also associate your image with a Link To destination …

How To Add And Format Images In WordPress Posts And Pages

Custom URL: Select this option to link your image to a URL of your choice (e.g. your home page or product page). Clicking on this image in a post or page will send the visitor to the URL location specified in the Custom URL field …

How To Add And Format Images In WordPress Posts And Pages

Media File: Select this option to link your image to the folder where your image file has been uploaded. Clicking on this image in a post or page opens up a full-size copy of your image on your visitor’s browser …

How To Add And Format Images In WordPress Posts And Pages

Attachment Page: Select this option to link your image to the media attachment page. Clicking on an image inserted into a post or page with this option will open up the file’s attachment page (See this tutorial for information about attachment pages) …

How To Add And Format Images In WordPress Posts And Pages

None: Select this option if you want to remove all links to the image. When an image with this setting is inserted into a post or page and clicked on, nothing will happen …

How To Add And Format Images In WordPress Posts And Pages

You can also choose a Size for your image …

How To Add And Format Images In WordPress Posts And Pages

Note: You can change the default size of your image thumbnails in the WordPress Media Settings page …

Adjusting Image Placement And Size

You can move an image around your text by selecting it with your mouse, then dragging and dropping it into a different area of your post or page editor window …

How To Add And Format Images In WordPress Posts And Pages

To edit an image once it has been inserted into your post or page, click on the image with your mouse and select the Image Edit icon …

How To Add And Format Images In WordPress Posts And Pages

The Edit Image screen will open up …

How To Add And Format Images In WordPress Posts And Pages

In the Edit Image screen, you can do the following:

Size: This allows you to scale your image from 100% down to 60% of its current size. This is useful if you want to adjust the size of your image to something other than the default full size, Large, Medium, and Thumbnail size options presented when you insert the image. Slide your mouse over the settings to enlarge or reduce the size of your image, then click to set the size option.

Alignment: This is where you control how your text aligns or wraps around your image. Select either left, center or right alignment and the image preview will change to show you how this will affect the image and text on your page.

You can also specify a Title for your image, Alternative Text (Alt text), Caption, and Link URL (See previous sections of this tutorial and this tutorial for more details about these options.)

When you’re done editing your image, click Update to save your new settings, or Cancel to exit the screen without saving your changes …

How To Add And Format Images In WordPress Posts And Pages

How To Resize Images – In-Content Image Resizing

You can resize your image directly in the Visual editor by clicking on the image, selecting any of the standard resizing handles and moving the mouse to make the image smaller or larger …

How To Add And Format Images In WordPress Posts And Pages

Note: Your image may become distorted or blocky depending on how you resize it.

How To Resize Images – Adding Thumbnail Images To Posts

To add a thumbnail image to your post, place your cursor where you want the thumbnail image to appear in your content and click on the Add Media button …

Using Featured Images In WordPress Posts

This will bring up the Insert Media screen …

How To Add And Format Images In WordPress Posts And Pages

Select the image you want to insert into your post as a thumbnail and then choose Attachment Display Settings > Size > Thumbnail from the drop-down menu in the Attachment Details column …

How To Add And Format Images In WordPress Posts And Pages

Click Insert into post

How To Add And Format Images In WordPress Posts And Pages

Your thumbnail image will be inserted into your post in the location where you placed your mouse cursor …

How To Add And Format Images In WordPress Posts And Pages

To learn how to change the default size of your thumbnail images, see this tutorial

Using The Advanced Settings Tab To Edit Your Image

To access the Advanced Settings tab, click on the image edit icon…

How To Add And Format Images In WordPress Posts And Pages

Click on the Advanced Settings tab…

How To Add And Format Images In WordPress Posts And Pages

In the Advanced Image Settings section you can:

  • View the Source URL of your image (if your image is stored in a different server, enter the full URL to the image here)
  • Enter a custom Size for your image or click on the Original Size button to restore the image to its original size
  • Enter a CSS Class – You can add or override CSS classes for your image here.
  • Add Styles – Apply individual CSS styles to the image.
  • Adjust Image properties like adding a border (enter “0” for no border, or specify a border width in pixels, e.g. “2”), vertical spacing and horizontal spacing (enter the number of pixels for these).

Below the Advanced Image Settings you will find the Advanced Link Settings section. This includes the following options:

  • Title: Enter text here to display the image title as a tooltip (the text will appear when visitors hover their mouse button over your image).
  • Link Rel: You can add link rel attributes to your images (e.g. “nofollow”).
  • CSS Class: Use this field to apply a CSS class to the link.
  • Style: Use this field to apply individual CSS styles to the link.
  • Target: Select whether you want the link to open in a new window or the same window.

Remember to click the Update button to save any changes made to these settings …

How To Add And Format Images In WordPress Posts And Pages

Useful Tip

Tip#1 – If you notice that an image appears to be distorted, or if you replace an image on your server with another image of a different size, then click on Image Edit > Advanced Settings > Original Size button to restore the image dimensions to its correct size …

How To Add And Format Images In WordPress Posts And Pages

Remember to click the Update button to save your settings …

How To Add And Format Images In WordPress Posts And Pages

How To Add Images To Your Sidebar

In version 4.8, WordPress introduced a WordPress Image Widget that lets you add an image to your sidebar from your media library or an external storage location …

Add an image to your sidebar with the WordPress image widget

(Add an image to your sidebar with the WordPress image widget)

To learn how to add and display images on your sidebar using the WordPress image widget, see this tutorial:

Congratulations! Now you know how to insert and format images in WordPress posts and pages.

How To Add And Format Images In WordPress

***

"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group

***