Annotate Flickr

A while back, Luis Villa asked about a script to add creative commons licensing information to an image.  My first thought was to just use ImageMagick.  That works pretty well, but assumes a command line, image magick, etc.  My next thought was a piece of javascript that you could include on a webpage.  The javascript would scan all <img> tags and for each that were of the class “cc-license”, it would grab the “license” and “attrib” attributes.  The img would be replaced with a canvas that had a transparent license image and the attribution in the corner. That worked pretty well, but again, didn’t really change the image, so if you were loading it into a presentation, etc., you were out of luck.

Okay, thought the third.  Why don’t we take the canvas idea (idea #2 for those keeping score at home) and wrap it in a GreaseMonkey script.  The script would run on Flickr pages and, when triggered, would grab CC license information, along with the picture name and creator from the Flickr API and shove it into a canvas.  That canvas could be downloaded as a png (don’t blame me, using png as opposed to something else is an HTML5 issue).  Okay, this might work.

Basic use:

  1. install and enable GreaseMonkey in firefox
  2. download the script – GreaseMonkey should pick up the fact that’s it’s a script
  3. go to Flickr
  4. follow the instructions for getting a Flickr API key
  5. install the key through the GreaseMonkey -> User Script Commands menu
  6. find an image you like – either the main page image or on the “All Sizes” screen
  7. click the “Click to Annotate with License Link”
  8. you should see the image with the embedded license info
  9. right click to save

I wrapped up the first version tonight (October 4, 2008).  New features should eventually include the ability to change colors, degree of transparency, location, etc., but for now it’ll work.

Version 1.0 – annotateflickr.user.js

One uncle owned a restaurant where Rasel worked in the kitchen, earning about $40 a month. But with an eighth grade education, there was little more he could aspire to in Sylhet. The sleepy tea growing region main export is its people fortune seekers who have migrated to Europe, wholesale nfl jersyes the Middle East and Southeast Asia, cheap jordans taken blue collar jobs and sent money back home.Though the corners are good, the defense has been susceptible so far to tight ends and backs who can catch the ball. cheap jerseys And Andrew Luck is still absorbing too much punishment. Despite the early setbacks, the Colts should start devouring the empty calories on their schedule and breeze through the division. CAN COBB GO?: Receiver has missed the last two games with a sore ankle, but teammates are helping fill the void. Undrafted rookie free agent has eight catches for 157 yards and a touchdown over the last two weeks. Tight end has joined and as another key target for Rodgers. The possible return of Cobb to an increasingly Wholesale NFL Jerseys diverse passing attack could pose another problem for the Giants.Denver Broncos (7 3) Well, there’s a new one. Denver blocked an extra point attempt and returned it for a two point conversion late in the game against the Saints. It proved to be the decisive score as well. It’s still a fairly new rule in the NFL but wow what a turn of events. (LWR 7)Now what happens is it’s going to wrap around to all the other guys in the league and then since I’m the number one pick, I’m going to be picking like twentieth again. So, during this time right now I’m basically looking who I’m going to pick next. So, I have to really go down and see how the draft is kind of branching out. For whatever it worth, I convinced that a big part of the comfort factor and subsequent constant adjusting of a cup is due to incorrect sizing. This past spring I joined my wife company softball team and wholesale china jerseys stopped in Academy Sports Outdoors for a traditional supporter and cup. I just bought the adult size that the guy suggested and was constantly moving the thing back into replica oakleys place. After a couple of games I was in Wal Mart and picked up a smaller size cup that is more pointed at the bottom as opposed to the more rounded shape of the first cup. It fits more snugly and made a dramatic difference in comfort and has to be adjusted far less often. Wearing a cup isn the most comfortable thing but this made the difference in night and day. I wouldn recommend a soft cup for anything like martial arts or baseball under any condition. It may be a little more comfortable until a guy goobers take a hit but it not worth it.

Comments are closed.