Not long ago Flickr added two more options for published photos choosing creative commons licenses, both CC0 and a Public Domain.

This is a good thing, even if to me it adds more confusion as to which Public Domain license (both are PD licenses with differences perhaps requiring close readings with a lawyer) one might choose. It seemed like a good idea this morning to update my Flickr CC Attribution Helper tool.

A nifty side effect of the way I built it is that no one needs to create a new bookmarklet to get these features, is they are incorporated into the pages posted on github that do the work- you get now more license sniffing features and some new format options.

I started by going to review the kinds of licenses the flickr API provides for photos, and noted that they have not updated for these new options (they are values of 9 and 10). While there, I spotted a few more license varieties I was not dealing with:

  • (7) No Copyright Restrictions – these are used in the Flickr Commons the photos institutions have added to flickr under essentially a copyright free license. I am not sure if these images come up in flickr search tools I prefer like Compfight or even Google Image searches (who knows how they filter and parse results).
  • (8( United States Government Work – By law images created by the government are implicitly free of copyright

These are now recognized by The Helper (note the captions)

I am not quite sure how to get to the US Government photos, the only way I could find them was via the API interface searching on photos with a license code of “8” — I am not quite sure to label them as PD, but thats my best guess.

And an example using CC0

and the Other Public Domain (“Work” or CC Mark 1?)

I also realized in looking at my code was that while I was before listing the listen in the HTML attribution text, I should make the license name link to the license and the “flickr photo” link to the source. I may need to think of a way to split the hypertext because its not clear that there are two links– here is a before and after comparison for the WordPress Caption version (thanks Mom for the photo pose)

new-attribution-links

A few other bits and bobs- it may not bee seen, but I have a series of status messages that switch every half second until the flickr API work does it stuff, it should give some sense that things are in motion if the connection is slow. This was more of a “Can Alan Figure it Out” thing, but involves setting up a function called by a timer:

Called in my script it generates a call to this function every half second (probably too quick) and calls the ChangeStatusMessage function to pick a message randomly from an array and update the div where the status is displayed.

I also call this function just inside by jQuery $(document).ready code so the thing starts with a random message. Of course you have to turn off the timer, otherwise it just keeps going, so once I get all of the flickr attribution stuff ready, I cancel the timer function:

And all of this started this morning from an email from a user who told me that my tool was not working because the attribution never appeared. I tested on the same image and everything worked. But the last thing you want to tell someone who reports a bug is “It worked for me” which gives them nothing to help them understand the issue.

So I wrote “It worked” with a screen capture, but also added my own experience that sometimes the flickr api does not respond or is offline. So I figured out a way that if the variable that holds the attribution is not changed in 10 seconds (assuming that should be long enough to get a response) it pops an alert message.

This is done with a similar function:

The script still chugs along but at least it offers a possible reason why you are not getting any attribution (this would happen as well if you lost your internet connection). My wording on the license options my need polish too, if anyone has suggestions, they are generated via these functions:

See the full code on the basic HTML attribution and the WordPress variant.

If you want a different kind of format on the output, then you can fork the code and submit a new tool page (as John Johnston did for his Stamper)

So that’s what’s new with the Flickr CC Attribution Helper, see more on its github home


Top / featured image credit: Creative Commons licensed (CC0) flickr photo by U.S. Embassy Montevideo: http://flickr.com/photos/usembassy_montevideo/4425228640

If this kind of stuff has value, please support me by tossing a one time PayPal kibble or monthly on Patreon
Become a patron at Patreon!
Profile Picture for CogDog The Blog
An early 90s builder of web stuff and blogging Alan Levine barks at CogDogBlog.com on web storytelling (#ds106 #4life), photography, bending WordPress, and serendipity in the infinite internet river. He thinks it's weird to write about himself in the third person. And he is 100% into the Fediverse (or tells himself so) Tooting as @cogdog@cosocial.ca

Comments

  1. Nice error message about API taking a nap 🙂 i love cute error messages coz u need sthg to laugh about when things go wrong 🙂

    Thanks for updating it. For the recor, i could see the two separate links clearly. Maybe coz i read an earlier post where you talked about separating them. I need to go back to using your bookmarklet 🙂 i used it a few times then forgot. I should let my students know about it, too, so they can attribute more easily (usually I forget to teach them about this for the undergrads)

  2. Thanks for updating this and giving us all of the fun details. I learned a few things today about the licensing options available at Flickr.

    Maybe the text would be better done something like:
    flickr photo shared by cogdogblog under a Creative Commons (BY-SA) license

    Then “shared by” and “under a” are both plain text with no links to separate the three links. Or is that just too much text. #hmm

Leave a Reply

Your email address will not be published. Required fields are marked *