This is a guest contribution from Bhagwad Park of hostoople.com.
As we discussed last week, Getty Images recently opened up millions of its images for free usage. Coming from a professional stock photo website, this is a phenomenal step and one that will be greatly appreciated by thousands of bloggers all over the world. Most of us have been in the position where we have found a really appropriate picture to use only to find that it is copyrighted and requires a license fee to display. Now we can have access to the best photographs on a dazzling variety of subjects for free. By default, Getty Images provides you with a stock I-frame that displays the image as well as the credits link. What we want is to find a way to properly incorporate it into our WordPress post so that it fits in nicely with our theme and aligns properly.
Getting the Embed Code
The first step is to find an image that is embeddable. Getty Images hasn’t opened all of its pictures to the public – just a large fraction of them. So for example if I have initiated a search using the term “blogging”, I will get a number of results and I need to figure out which once I can use. To do this, hover your mouse over each of the icons and you will get a pop-up. The ones we’re looking for have an “embed” button along the bottom of the picture to the right of all the other icons as shown in the screenshot below.
Clicking this icon will bring up the code to display it on your website. It takes the form of an I-frame that you need to insert into the HTML of your document. It comes with a default height and width and you will probably need to change to adjust it to fit your site. Below it, is a checkbox to toggle the image preview on and off. Enabling it will show you how the picture will look.
Aligning and Resizing the Image
Let’s say we want to embed this image in the top left corner of our post. Go to your WordPress visual editor, and enter the HTML editing mode by clicking the “Text” tab on the right-hand side. This will allow you to edit the raw HTML in your content. Paste the copied i-frame code right at the very top as shown in the screenshot below. If you preview your post now, you will see that the image is the very first thing displayed with all of the text underneath it.
But what if we want it left aligned so that our text “flows” around the image? To do this, we need to add the following code to our I-frame as an attribute:
Place this immediately after the I-frame tag as shown below:
Now when you preview the image, it will be left aligned with your text appearing to the right of it. But what if we need to reduce the width so that it more easily fits in with the dimensions of our blog post? Let’s say we want to reduce it to 300 pixels instead of the default 515. To do this, simply change the “width” attribute in the HTML to the pixel size you require. In our case, we change it to:
This reduces the width but leaves the height intact which is a problem. As shown in the screenshot below, reducing the width without changing the related height attribute will leave a lot of whitespace below the image.
Changing the height is a matter of trial and error. The Chrome developer tools do a great job of allowing you to experiment with the right height. In my case, I found that 268 is the optimal height. So I changed the related attribute to:
This gives me a left aligned image with perfect dimensions on my blog. Using these simple instructions, you can have the very best pictures suited to your content for free – thank you Getty Images!
Bhagwad Park is a writer for hostoople.com, specializing in WordPress. You can follow him on Google+ here.
If I read Getty’s conditions, resizing their images is illegal and not allowed. Better watch it.
This is very informative as i get some useful tips to write a blog and i will use it in future. thank u for sharing your experience
I always wondered if they’d ever do this themselves after PicApp wound down. Glad to see that they did, and I hope they find a way to make it worth their while. I wish it was a bit more seamless, but better than paying through the nose for some blog imagery.
Thanks for the detailed instructions… will try it.
Aren;t there any other methods to do this?
I don’t really enjoy using iframes because as I know aren’t very good for seo :)
Thanks bhagwad for sharing this. Looks like it is pretty bit tricky when it comes to alignment. Thanks again for the tips.
Really informing post! I didn’t know that you could even tell if a photo were embeddable. I’ve been using WordPress for my Online Advertising class, and I really appreciate the tip you gave about wrapping text around an image. I saw that this was done on other blogs, but wasn’t sure of how to do it myself. Wrapping text around an image just makes the posts look better. Thanks for all the tips!
I applaud you for your effort and dedication behind such a wonderful post.Thanks for the share.
What if we can use justify option under image options grid. i have been facing issue in images alignment but now i have 2 tricks to make it suitable for blog otherwise it goes out from right bar and looks weird. This Article is very Impressive Piece thanks Bhagwad for sharing.
Thanks Bhagwad for this nice trick.
Hey thanks for the post….. this is really very helpful to embed effects in images….
That was a handy guide to deal with and edit HTML aspect of Getty’s embeddable images. Sure, this move made by Getty images has been one worth praising. Especially bloggers have been benefited by this move. There are so many good quality images now available for use!
At the same time, many folks are finding it difficult to deal with the HTML editing part of the embed code. Well, for those who are not used with HTML codes, this task will be a bit difficult.
But thanks to this article, understanding about it and editing the code has been made real simple by this process. The use of screenshots makes the process more easy to follow!
Good work! I found the link to this post on Kingged. I’ll be up-voting and Kingging it there.
Another great guide :) I just wanted to say thank you, these guides are very valuable and made me learn a lot!
Really helpful and inspirational post. Thanks. Always like to read your post
This is very informative as i get some useful tips to write a blog and i will use it in future. Tks for sharing your experience
Great guide! Easy to follow and I’m sure I’ll need to come back to this in the near future. I’m actually really enjoying tinkering around with HTML at the moment.
Nice guide, very helpful. Your experience will help a lot. thanks
Excellent post! The way you explained it is easy to understand even for beginners. Thank you..
Amazing post ! even i was facing problem to get high traffic from images which i have uploaded on my site..
This helped me to solve my problem and am sure this will help to earn better SEO
Nice in depth post. I’m still a bit hesitant about using the Getty API as their executives have made statements saying that they’re not against the idea of including ads on their images similar to youtube. At the same time, they have so many great pictures that it’s going to be hard not to use their content.