How to Optimize Your Images for Great Search Results
Ever been tempted to upload your image to your WordPress dashboard and just insert it in a post as is? Of course, we all have at some point. Thing is, if you use images that way, your WordPress site (any type of site for that matter) will soon get really clunky and youโll even lose search engine rankings because of that.
Let me explain how to use images properly both in terms of SEO and overall site performance. These tips will help you stay away from all crucial issues related to image handling in a WordPress site.
Luckily or not, Google is not sophisticated enough to figure out whatโs depicted in your image. That means youโre supposed to somehow tell Google what is in it. With that in mind, you need to use an alt image attribute first thing in the morning. Hereโs why:
1. Alt Image Attribute
Most SEOs agree that itโs the first thing Google looks at when it decides what your images is all about. You want to use a descriptive alt value that also – ideally and if it makes sense – contains your keyword.
If you insert an image with a funny cat into your WordPress post, be sure to use โfunny catโ as your alt image attribute. Some also use dashes in their alt values. For example, โfunny-catโ, but that is not necessary at all. Itโs more like a style choice.
2. Image Filename
Another awesome way to tell Google what is depicted on your image is to rename your image file so that it contains your keyword. Doing so will make your image more relevant. Getting back to the previous example with a funny cat image, you want to rename your image to โฆ well, โfunny-catโ.
As opposed to alt values where dashes are not mandatory, you most definitely need to use dashes in your image filenames because otherwise (if you use spaces to separate words), your image filename will be a dogโs breakfast with all kinds of weird characters inside. Using underscore in file names is not a good idea either, because search engines are having a hard time figuring out separate words in such filenames.
3. Image Dimensions
You may be thinking that the bigger your image, the better it is for the user because he or she will be able to check out that image at the best quality possible. Unfortunately, itโs not usually ย the case because most monitors wonโt display more than 72 dpi in either case.
Well, if you also want to cater for those guys that use MacBook Pros or iPads with retina displays, you can just use a WordPress plugin that will automatically handle retina-ready images. The name of the plugin is WP Retina 2x. In a nutshell, the plugin makes normal images load first, then the client-side checks for retina images and download them if available.
As a rule of thumb, you just need to insert an image into your post with the dimensions that make sense for the width of your particular theme. Hereโs what I mean. If your content area (the area for post content) is 700px, you want to use images that are 650px or even 600px. Sure thing, itโs largely depends on the padding value that you use on your site. Iโm just trying to get the following point across. You MUST NOT use as big images as possible.
4. Image File Formats
Other that actual image dimensions, you need to make an educated choice as for which image format you want your image in. Thatโs because itโll influence your general file size as well. ย The more lightweight your image is, the faster the site that used it will load. And a snappy site is always good for search engine optimization. It gives a few extra points for higher rankings.
As you know, thereโs a whole lot of file formats, but just a few main ones. Weโre gonna consider .gif, .jpeg, and .png. You need to use them in different cases if you want to make sure that your images are SEO friendly.
.gif
A .gif image file format is a good choice for logos and stuff like that because it supports a limited amount of colors and simple transparency. Since most logos donโt use semi-transparent areas, youโre good to go with this format.
.jpeg
A .jpeg image file format would just cut it for an images with a slew of details, such as photos and such. Though the format allows you to store lots of details and keep your image image file size to a minimum, itโs a lossy format. That means every time you edit and save it in Photoshop, ย itโs saves with a worsened quality every single time you do it. Plus you canโt use the images in this file format if you need a transparent area in your image.
.png
And finally, the .png image file format allows you to both use a decent amount of colors (unlike .gif) and it supports advanced transparency, which means you may use semi-transparent areas in your images. As opposed to the .jpeg image file format, itโs a lossless one (.png keeps the same quality regardless of how many times you edit and save it with Photoshop or what not). For example, Google uses a .png logo.
That said, thereโs still a problem with .png images. They are usually pretty heavy ones. Especially, if itโs not a logo but a full-fledged image with lots of details. So, you want to use the format, use it scarcely and only when you definitely need to.
While saving images in Photoshop, you need to keep all these aspects in mind in order to make the right choice with your image file format.
5. Specific Width and Height
While adding your images to a Wordpress post or page, be sure to define both the width and height for your images. Though it may still work for you if you donโt do that (images will display properly in most cases), youโre shooting yourself in the foot. Thatโs because youโll be wasting ย your loading time for browsers trying to figure out whatโs the size of the spot that is required for your image.
In case you play safe and specify it explicitly, the browser will know right away the size of the area on your page that should be saved for the image. Long story short, specifying your width and height saves time and results in faster loading speeds for your site.
6. Descriptive Text
In order to increase your image relevance, you also want to use the โDescription textโ field in your โAttachment detailsโ section while you add an image via your WordPress dashboard. Itโll help both the post that image is used in and you may be lucky enough to rank high with your image in Google image search results pages. So, you want to do it because itโs a pretty much win-win.
7. Keyword Proximity
And one more factor that is used for boosting image relevancy would be keyword proximity. Thing is, itโs beneficial to use your keyword both before and after your image. And it just makes sense. Because you usually start talking about something, then you show it as an illustration of your point and again you keep on talking about that thing trying to draw up a conclusion.
Based on my blogging experience on WebDesy.com and just guest posting, itโs a pretty natural state of things. So, you donโt really need to dwell too much on that – though itโs good to know that this factor helps you with creating โthickโ (high-quality) content that search engines really love.
Conclusion
For the most part, itโs not a good idea to use your images as is. You need to make sure that your image has a descriptive and keyword-rich alt value, uses the right filename, uses proper image dimensions and image file format.
Whatโs more, it should also have explicitly specified width and height. You also want to have descriptive keyword-rich text around your image. That done, both your users and search engines will thank youโฆ most likely with hard cash.
Do you keep these aspects in mind while working with your graphics?
Cool :) Thanks heaps. Its always great to have a reminder, even if we think we’re doing it all!!!