Drupal - Resize an image in the Body content

If you have a very high resolution image that you want to display at a smaller size, it is best to resize the image closer to the actual desired display size.  This will help to make the load time for your page faster.

For example, here is an image that is high resolution, but displayed at a smaller size.  You can right-click on the image, and open it in a new tab to see the actual size.

example of hi res image of a computer keyboard

Instead, when inserting an image, you can use Drupal's Resize command to make a smaller version of the image.

  1. Make a new draft of the page.
  2. Click in the content where you want to insert an image and click the Image button in the HTML editor toolbar.
  3. If the image is already in the page, right-click on it and select image properties.
  4. Click Browse Server.
  5. Find and select your image.  You will be able to see the size in pixels and KB in the file selection window.
  6. Click Resize.
  7. Enter a desired width or height in number of pixels.  Click into the other dimension field and Drupal will automatically insert the appropriate scaled size.
  8. Make sure Create a new image is checked.
  9. Click the Resize button.
  10. A new version of your image will appear.  Usually, it will use the same filename, but with an "_0" at the end.
  11. Click Insert.
  12. Add alt text.
  13. Click OK.

Here's an example of the same keyboard image after resizing. If desired, you can resize the image to be a little bigger than the intended display size, and adjust or fine tune the display size in the image properties.

example of low res image of a computer keyboard

You can also use this method when making an image open in a lightbox.  Use the smaller version of the image in the page, and link to the larger version of the image with the lightbox link.  Here's a screenshot of what that looks like.  Click to zoom in:

Screenshot of image resize process.