Using CSS to attribute photos in your blog posts

Rebecca recently made a post about using the AddQuickTags plugin for WordPress to display captions on photos in her blog posts, I would elaborate on the CSS styling it takes to get this. The WordPress plugin makes this easier, but I thought it would be useful to share how you can do this with some simple CSS, especially if you don’t have WordPress at your disposal.

First, how do you get this…

John and Becks by duanestorey on Flickr
Photo credit: duane storey on Flickr

to work?

To start with, you need your image and then link it to its origin or creator to attribute credit to. This is just good practice and makes the original author happy. We’ll have to peak at some quick HTML to get a sense of what’s going on here because we don’t like using visual editors. Code might be tough to work with for some, but it’s second nature to us.

<a href="http://website.com"><img src="http://photosharingsite.com/photo/image.jpg" /></a>

Your HTML might look different, but the premise should be the same. It’s a linked image, but how do you get the “Photo by:” tag underneath the image? Let’s start by adding some code to your CSS.

.captioncentered {
display: block;
text-align: center; /*centers text & image*/
margin: 10px auto; /*centers the whole div*/
padding-bottom: 1px; /*this depends of your design*/
font-size: 0.85em;
color: #ccc;
}

This will make like somewhat simple for you in the long run because this will set the design of your blog to work for all posts you use this styling for. So now what do you do with it?

You just setup a “class” to use in the “div” tag. It works like this.

<div class="captioncentered"><a href="http://website.com"><img src="http://photosharingsite.com/photo/image.jpg" /></a></div>

That centers the image, so now you need to add a little more HTML to this in order to get the credit where it deserves to be. This just requires some text and then linking the words you want linked. However, this extra text must be inside the div tags in order for this to work!

<div class="captioncentered"><a href="http://website.com"><img src="http://photosharingsite.com/photo/image.jpg" /></a>
<br />Photo by: <a href="http://website.com" />author</a> on PhotoSharingSite.com</div>

Once you have this, you are able to to display an image, such as a photo from Flickr, with proper attribution. Why? Because it’s the right thing to do, not to mention a legal way to not get yourself into trouble with the original author for taking their content.

The next thing you can do is edit your CSS to make some adjustment to the look of your text or perhaps the background. It really comes down to what you want to do. There might be a better way to do this, but this is how we get this function to work.

CityTV in Toronto punished for using Flickr photos and not giving proper credit to owner

CityTV in Toronto had a great story. Burglar gets caught in the act by home owner, attempts to get away by leaping off balcony, busts his leg, and someone snaps pictures of the poor sap while he lays on the ground as cops are called and arrive to the scene. What avid Flickr user Joel Charlebois did with the photos afterward is the real story.

When CityTV heard him mention that he was going to post the photos to Flickr, they not only checked them out but used them in a news story. Problem is, there was no mention of the person who took the images. This is also known as a violation of copyright. As any good Flickr user and avid photographer will tell you (like Duane did on his blog post on this same topic), you protect the things you love. Yes, you can protect your photos on Flickr with a copyright, and the Canadian Broadcast Standards Council agreed with the complaint brought against CityTV.

Charlebois, displeased, took his case to the Canadian Broadcast Standards Council (CBSC), and today, nine months after the complaint was filed, a majority of the National Specialty Services Panel found that City’s broadcast did indeed violate the Association of Electronic Journalists of Canada’s RTNDA Code of (Journalistic) Ethics, which states that “Plagiarism is unacceptable. Broadcast journalists will strive to honour the intellectual property of others, including video and audio materials.” (The full decision is here.) The panel took particular issue with the lack of credit to Charlebois, stating that “the broadcaster knew full well the identity of the photographer whose still shots were used in the news report,” an omission that they deemed unfair, for news reporting or otherwise. (They note that the American RTNDA states that “professional electronic journalists should…clearly disclose the origin of information and label all material provided by outsiders.”)

As a result, City must issue a rare on-air statement at least twice, during prime time, over the next ten days. That statement will follow a script set by the CBSC, stating that, in part, the news organization breached the aforementioned Code of Ethics and “included three still photographs of the injured burglar without providing any credit to the photographer, whose identity was known to the broadcaster. By failing to provide that accreditation, the broadcaster has failed to honour the intellectual property rights of the photographer.” [torontoist]

What is important to me on this story is that intellectual property was protected as it should be, no matter how it is being utilized. On top of that, it gives comfort to know that mainstream media will be held accountable for violations of copyrighted material. It’s not a full safety net, but that means that even the little guy stands a chance against big media companies when it comes to protecting your content.

Even Charlebois admits in the story that all he was really concerned about was the proper accreditation, not the punishment handed down to CityTV. I think it’s interesting to note that there is very little discussion of fines or compensation.