WordPress makes it easy to upload images and use them inside posts and pages.
To add an image to our blog post, first, we need to add the “Image” block.
Next, to upload the image, we have four options:
We will use the “Upload” button.
Come on, download this invoice image:
Ah! Ah! Not so fast! Not so fast!
One common mistake most website owners make is downloading an image from the internet that is 3000×3000 large with a 2 MB file size.
And then they upload it directly without resizing and compressing it.
This is a bad practice because:
So, before uploading the image, please think of the long run of your website and only upload the images after optimizing them for speed and disk space.
Anyway, don’t worry; you can perform the resizing and compressing in two easy steps.
There is a free tool called ImageResizer.com.
The image I have provided is 2000px wide and 266kb in file size.
But we don’t need an image larger than 1000px for our blog post.
So, go to ImageResizer.com, resize the invoice image to 1200px, and finally download it.
After the resize, the image file size is now around 122kb.
Previously the file size was 266kb. So, that’s a lot of savings.
But we can reduce the file size even further by compressing it.
ImageResizer did an excellent job resizing the image, but the file size can be reduced a bit further without hurting the quality of the image.
To compress the image, we need to upload it to tinypng.com.
Tinypng does its best to reduce the file size further without reducing the quality.
So, upload the resized image to tinypng.com and see what happens.
Did you see that?
The image size is now 58kb, and the quality is still tip-top.
Now you have my permission to upload it to your WordPress site π
I understand that I am being strict here.
But it is necessary to save you costs in the long run π
Finally, upload the compressed image to your blog post from your computer’s file browser.
And that’s how easy it is to upload the images.
So, if you want to reuse the image somewhere else on the website, you don’t have to re-upload it again.
You can use the image by picking it from the Media Library.
And when using an image from the Media Library, click on the “Media Library” link or tab. This will give you access to all the images inside the media library.
When you upload an image and select it inside the post editor, on the sidebar settings area, one of the settings you’ll see is “Alternative Text”.
You must add an alternative text to the image uploaded because:
In the next lesson, we learn how to turn the image into a link.