Discussions (12,548)

Tagging photos to indicate flickr users are appearing in them ( Facebook style user tagging for flickr ) - Updated 29th June 2009

view profile

steeev says:

Theres a new way to tag your photos to indicate flickr users are appearing in them.

Quite a few users have already started doing it. The way it works is to use the following "machine tag" notation, for each flickr user in the photo

"flickr:userid=[flickr-userid]"

(replacing [flickr-userid] with the userid of the person in the photo)
the userid is the thing that looks like 32463453@N00 and you can find out what a users userid is by visiting idgettr.com/

Another way to get the userid is to "right click" on a user's buddy icon and select properties, if i do it on my buddy icon for example the image location is farm1.static.flickr.com/7/buddyicons/36521957871@N01.jpg?1111947633#36521957871@N01

so my userid is the bit in bold i.e 36521957871@N01 now if i wanted to tag a photo of myself i would add the following tag flickr:userid=36521957871@N01 to the photo that i appear in.

you can add as many tags as there are people in the photo. of course, it sounds a bit complicated doing that for each user in the photo. luckily theres a much easier way!

Flickr User Tagging The Easy Way:
-----------------------------------------------------------
1) Get firefox if you havent already from here: mozilla.org/firefox/
2) Install the greasemonkey extension for firefox addons.mozilla.org/firefox/addon/748
3) Install the following greasemonkey script: steeev.freehostia.com/flickr/hackday/flickr.users.in.phot... (Updated 13th April 2009)

The script was originally created by jacobd, though i've added some more code for extra functionality. The script detects these user tags, when you are viewing photos on flickr, and adds user icons, usernames and links for each tagged user in the photo, next to the photo. It also makes adding users to photos a lot easier, by providing you with a "add user to photo" link next to each photo, where you have permission to add tags. Clicking the link brings up a select box, that lets you choose flickr users from your contacts list to add to the photo.

Tip: If you click the select box once after it has loaded then start typing the first few letters of the user you want to add’s username, the select box will immediately jump to the user you wish to add, speeding up the user adding process.

When you click the add user to photo button after selecting a user, as well as a user tag being added, a note will also be added to the photo, so you can identify which user is which in the picture. The note contains their username, a link to their photostream, and also a link to more photos of them.

The script also adds a new item to each user on Flickr's buddy menu: "View photos of this user" which when selected does a flickr search for photos of that user.

I made an RSS feed of the flickr:userid=* tags, which you can access here: feeds.feedburner.com/FlickrUsersInPhotos
It gets updated whenever anyone adds a photo with a flickr user in it.

You can also subscribe to RSS feeds for photos of individual flickr users, simply subscribe to the Flickr generated RSS feed for the flickr:userid=whateveruserid tag

-----------------
4th April Update
Updated the script to use userids (aka nsids) rather than usernames and also adds a note for each user, so you can see which user is which in the photo.

8th April Update
* moved add user link above the group list section
* select box loads faster, and has contacts, friends and family in separate sections
* buddyicon now gets added automatically when you add a user
* changed buddy icon menu item "show photos of this user" to show pics with both flickr:userid= + flickr:user= style tags
* changed "more photos" link in note to also show pics with both flickr:userid= + flickr:user= style tags

29th June 2009 Update
* Script updated to fix note adding functionality

-----------------

This script and all my other flickr gm scripts are available here: steeev.freehostia.com/flickr/
Originally posted at 2:29AM, 27 April 2007 PDT (permalink)
steeev edited this topic 99 months ago.

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

steeev, you're a fucking legend.

That's really rather cool.

Screenshots get TONS of views.
ages ago (permalink)

Hello, I am Bruce [deleted] says:

That's neat. It even seemed to cope with usernames with spaces in them (just put the tag in quotes).

But...
- what happens when someone changes username (presumably it just breaks the link)? This is a problem with some of my contacts.
- does anyone want to write a script to help adding the tags (e.g. drop down list of contacts)?


PS: there's a little-used group for photos of people who flickr at www.flickr.com/groups/pwf/
ages ago (permalink)

view photostream

Briggate.com says:

Brilliant and timely because I have a few nice photos of the Leeds flickr group who -- bit unusual -- have met up 3 times this month.
www.flickr.com/photos/lloydspencer/sets/72157600109528766/
.
Originally posted ages ago. (permalink)
Briggate.com edited this topic ages ago.

view photostream

styler* says:

ok just quietly is there anything steeev has created that isn't awesome.
ages ago (permalink)

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

Even his farts leave me dumbstruck.
ages ago (permalink)

view photostream

Violentz says:

cool! I just tagged all my self portraits.
ages ago (permalink)

view photostream

abbyladybug says:

If I tag all my self-portraits, and people are subbed to the feed of every single Flickr user tagging themselves, it will totally gum up the system! :P

Cool idea!
ages ago (permalink)

view photostream

steeev says:

ellipse wrote

ok just quietly is there anything steeev has created that isn't awesome.
thanks! :D

♥ shhexycorin ♥ wrote
Even his farts leave me dumbstruck.
LOL! :D

btw i updated the script, so the buddyicon menus now work on the user icons. thanks are due to mortimer for his help with that part of the script. Cheers dude! :D
Originally posted ages ago. (permalink)
steeev edited this topic ages ago.

view photostream

striatic is a group administrator striatic says:

DONE!

that was a funny little parade of narcissism.
ages ago (permalink)

view photostream

GustavoG says:

Quite a few users have already started doing it.

Out of curiosity, how are people tagging? By user name (which can be volatile), by the user's URL (which can be cryptic), by some common variant of the name (which can be entirely inconsistent)?

For many of us there's no difference (or minor capitalization difference), but for others it is most definitely an issue.
ages ago (permalink)

view photostream

striatic is a group administrator striatic says:

it looks like the GM script is reading username instead of user alias or nsid, which will cause problems if people change their screen-names.

most unfortunate.
ages ago (permalink)

view photostream

matt says:

Definitely cool, and I'm not so perturbed about the user-name, since I don't think I know anyone who changes their name regularly. I definitely don't have photos of anyone who's changed their name, I don't think.

An appealing solution, though, would seem to be allowing alternate tags as well, e.g., flickr:nsid or flickr:user_url.
ages ago (permalink)

view photostream

tmac0381 says:

Very very cool.
ages ago (permalink)

view photostream

steeev says:

interesting solution matt, i wonder if it will take off, the good thing about using usernames is they are users everyday "face" the name that users use and others see day in day out, and if people were to view the photos and check the machine tags and they didnt have the GM script installed, they could still recognise the users by their usernames, whereas if it were the user_url, or even worse the nsid, people might not recognise them so easily. though obviously i also realise that machine tags, arent really supposed to be seen be humans, so maybe it doesnt really matter after all what tag is used.
Originally posted ages ago. (permalink)
steeev edited this topic ages ago.

view photostream

steeev says:

btw ive updated the rss feed to include geo information if the photo has it, so its now GeoRSS enabled, you can witness the GeoRSSness here: maps.google.com/maps?q=http://feeds.feedburner.com/Flickr...

I also just found a GeoRSS to KML converter, so heres the same feed in KML for google earth fans.
Originally posted ages ago. (permalink)
steeev edited this topic ages ago.

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

striatic is so damn interesting!
ages ago (permalink)

view photostream

steeev says:

i updated the script to add an easy way of adding user tags. it adds a link "add user to this photo" below the "add tags" link, that when clicked displays a select box populated with your list of contacts. selecting one and clicking the "add user" button will add the "flickr:user=" machine tag for that user.
ages ago (permalink)

Hello, I am Bruce [deleted] says:

I like the "add user to this photo" option.

The changing names thing is an issue for several of my contacts. So I would prefer if the script used the underlying user id instead of screen name. Or why not add both, one for people to read (which might be out of date), and a definitive one for the computer?

To make matters worse, one of the contacts who changes his name regularly has got quote marks in his username. This completely messes up the tags.
ages ago (permalink)

view photostream

Trapac says:

I'd just like to say that since you've added the GM script with 'add user' box - this has become so easy. I've just been to my relatively small collection of images with flickr'rs in and updated them all very quickly and easily.

My only (minimal) gripe, is that when there are more than one or two flickr'rs in the image it would be great if you could just list them in the box as you can with tags and then hit 'add' just the once rather than after every single one. I know for some users with long names that would mean inserting inverted commas as per usual tagging protocol, but I could live with that unless the script can be written to generate them automatically maybe? (notwithstanding the above comment....)..

Otherwise this rocks! Thankyou. :)
ages ago (permalink)

view photostream

steeev says:

bruce i think most users tend to stick to a single username so for the majority of people it should be fine. . maybe at some point i'll add support for nsids to the script, though, they are not as user friendly for people viewing the tags who dont have the script installed. i think adding both would get messy.

as for the quotes problem, the problem with quotes being added to a tag is that it treats whatever is within the tags as a separate tag, again there arent that many users with quotes in their usernames so, for the majority of users it wont be a problem.

trapac you can quickly insert more than one user by clicking the select box, then typing the first few letters of the username, the selected option will automatically jump to the user you are looking for, then click add and repeat the process.
ages ago (permalink)

view photostream

steeev says:

i updated the script to add a function to the buddyicon menus called "Photos of this User", this now works on any flickr users buddy menu. When selected it will take you to the flickr:user=username tag page for that user, so you can see images of that user. If there arent any photos of that user tagged, it will just pop up an alert telling you there arent any.
ages ago (permalink)

view photostream

Hamed Saber says:

Steeev, I think you should do what matt asked. Screen names are not completely reliable.
WTF if a machine tag couldn't be read? It's a machine tag, not a human tag!
BTW i think it could be good idea if your GM script adds both flickr:user and flickr:id tags.
Also you (or me or someone else!) can write a periodically running for adding flickr:id tags to photos which has just flickr:user tags.
ages ago (permalink)

view photostream

Stewart is a group administrator Stewart says:

I know it's a little late to say this, but I gotta recommend using NSIDs instead of (or in addition to) screennames as well. It'd be easy with the drop down list of contacts and you can always let people type screen names and then do the search to snag the NSID as well. (As a bonus, you could confirm with the buddy icon and screen name.)

We are planning to implement this as an integrated feature on Flickr at some point (it's been on the list for 30 months or so - one of the oldest unimplemented features, so don't hold your breath :) If/when we do this, we may or may not use machine tags (might use a special type of note, or neither of those). In any case, it'd be nice if people using machine tags could have those recognized too.

This is an excellent example of the kins of motivations we had for doing machine tags - good!

Great work as always - thanks steeev :)
ages ago (permalink)

view photostream

Hamed Saber says:

I really had a hard job to find most of shots i'm in here.

But I'm strongly with Stewart.
I'll write an script for adding nsid's, and steeev, you please improve your valuable script for future tags.
ages ago (permalink)

view photostream

Brock is a group administrator Brock says:

If/when we do this, we may or may not use machine tags (might use a special type of note, or neither of those).

Like Zooooomr does? See? It is vastly superior. Well. When it's working.
ages ago (permalink)

view photostream

matt says:

might use a special type of note,

Stewart, for your consideration, I'd love to have a searchable 'special' note to specifically denote photo content - any photo content would be nice, but even people-only would probably cover at least 80% of what I'd use it for.
ages ago (permalink)

view photostream

Stewart is a group administrator Stewart says:

Like Zooooomr does? See? It is vastly superior. Well. When it's working.

Like *Facebook* does, smartass ;)

I think the way Facebook has done it can't really be improved: a find-as-you-type drop down list from your contacts to select the user, a notification to the person being tagged (and the ability for them to remove the tag off another person's photos).

Matt - like machine-tags-in-notes? Or specially treating URLs in notes? Or something else?
ages ago (permalink)

view photostream

Brock is a group administrator Brock says:

Heh. I likes poking :)

Incidentally, the 'z' version seemed clunky as hell (never actually spent any significant time at facebook), as it produced a tag search (essentially) with no obvious link to the user in question's page.

And she was hot, too. So I decided it was a shit system. ;)
ages ago (permalink)

view photostream

Hamed Saber says:

My script is ready for launch now.
I wish most of flickr:user tag users permit me for adding tags to their photos!

The machine_note idea is great! They could appear with a rectangle with different color boundaries!
ages ago (permalink)

view photostream

matt says:

Matt - like machine-tags-in-notes? Or specially treating URLs in notes? Or something else?

Machine-tags-in-notes would seem to be the most flexible and easily compatible with other uses for machines tags, but I'm not really partisan for any particular implementation. Thinking about it, the ability to search specifically for notes seems to be the key bit to me.

Let me give you a use-case: I have a few dozen pictures of me and my brother, all with these notes where one indicates me, and one indicates my brother. I want to find the one where he is sitting on my shoulders. So I search for photos where there is a note containing "Pat" above a note containing "Matt."* The geometric relations seem like they could be done external to Flickr if they had to be, but without something like a [machine]tag-as-note or tag-on-a-note or at least searchable notes, it can't be done at all.

(Iadh Ounis has published work on this sort of system, I believe it's the "RELIEF" system. I may have sent George a paper of his way back once upon a time, come to think of it, but you guys were at least twice as busy then as you are now, so who knows if she read/kept/remembers it.)

* Yes, my brother and I actually do have rhyming names.
Originally posted ages ago. (permalink)
matt edited this topic ages ago.

view photostream

Hamed Saber says:

I'm running it now
more than 50% of photos does not permit me to add tags on them!
ages ago (permalink)

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

Oh, I thought you were just browsing through enjoying my photostream!

I am hurt.
;)
ages ago (permalink)

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

Has the Pat ever sat on the Matt?
ages ago (permalink)

view photostream

austenhaines says:

@shexy
Not a lot makes me laugh when im pissed, but your last commetn did.

Is there a button to press to remind me of who i am and where i live????
Originally posted ages ago. (permalink)
austenhaines edited this topic ages ago.

view photostream

Hamed Saber says:

It seems there exists a robot in flickr, which detects tag spamming :D
BTW I think I put lots of them, you can search for machine_tag flickr:nsid=*
ages ago (permalink)

view photostream

Stewart is a group administrator Stewart says:

(Patrick and Matthew do not rhyme.)
ages ago (permalink)

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

Flickr = the Rhyme Police

*writes irate blog post*
ages ago (permalink)

view photostream

Stewart is a group administrator Stewart says:

I can censor your blog too, sucker.
ages ago (permalink)

view photostream

♥ shhexy corin ♥ is a group administrator ♥ shhexy corin ♥ says:

That explains the foul language and inane jibbering that goes on in it...
ages ago (permalink)

view photostream

Brock is a group administrator Brock says:

That must be it.
ages ago (permalink)

view photostream

juliemontgomery says:

Stewart, I would love to see facebook-style (drop-down menu-based) tagging on flickr! Just wanted to chime in and add my two cents.
ages ago (permalink)

view photostream

earth2marsh says:

juliemontgomery: steeev just added a feature that creates notes (like facebook does) for each user.

stuart, hamed, bruce, and matt: the new version also adds nsid machine tags as well as the username now!

the script is now in my "must have" list for flickr browsing. thanks so much (and for flickr pm and flickr contacts organizer).
ages ago (permalink)

view photostream

steeev says:

btw the newer version of the script e2m mentions
which uses userids rather than usernames and also lets you add notes for each user is available here:
steeev.freehostia.com/flickr/hackday/flickr.users.in.photos.user.js
script updated 4th April 2009

theres also a new RSS feed for tracking photos tagged with this style of userid tags here
Originally posted 119 months ago. (permalink)
steeev edited this topic 102 months ago.

view photostream

steeev says:

i fixed both the scripts up again
102 months ago (permalink)

view photostream

Life of David says:

Very cool.
102 months ago (permalink)

view photostream

steeev says:

a little birdie tells me that official flickr "people tagging" is coming soon*

* where soon is a completely arbitrary value between today and a few months time, that i just guessed.

BTW ive updated the flickr:userid version of the script so that it doesnt reload the page everytime you add a user, new version is here. Makes it a lot quicker to add multiple users to a photo.
Originally posted 102 months ago. (permalink)
steeev edited this topic 102 months ago.

view photostream

pamelaadam says:

ach i cannae be bothered with all the techie stuff can i not just type their name ?
Originally posted 102 months ago. (permalink)
pamelaadam edited this topic 102 months ago.

view photostream

(deaf mute) says:

I must have installed this script and forgotten about it, as the machine tags thing now appears on my pages. Works well.
102 months ago (permalink)

lost4words [deleted] says:

I understood very little of the original post.
Is there any way I can get a translation?
Greasemonkey, script, feed etc etc - not a clue.
102 months ago (permalink)

view photostream

lomokev is a group moderator lomokev says:

lost4words there is a grate web site that explains what rss is here and what greesmonkey is. in fact once you are there you can see that it can explains a lot of things.
102 months ago (permalink)

view photostream

steeev says:

lol! :)

ive updated the script again btw

8th April Update
* moved "add user" link above the group list section for consistency
* the select box now loads faster, and has contacts, friends and family in separate sections
* buddyicon now gets added instantly when you add a user
* changed buddy icon menu item "show photos of this user" to show pics with both flickr:userid= + flickr:user= style tags
* changed "more photos" link in note to also show pics with both flickr:userid= + flickr:user= style tags
The new version of the script is available here: steeev.freehostia.com/flickr/hackday/flickr.users.in.phot...
Originally posted 102 months ago. (permalink)
steeev edited this topic 102 months ago.

view photostream

steeev says:

@pamelaadam the problem with tagging with just their names has already been discussed. the problem being : people can change their username whenever they like. which means searching for their current username will not show up images tagged with their old username/s. the user's userid (aka nsid) stays fixed which is why ive changed the script to just tag using the userid.

@lost4words ive rewritten the original post, hopefully ive made it a bit clearer.
102 months ago (permalink)

view photostream

steeev says:

the note adding functionality had stopped working, so ive updated the script to fix this, simply reinstall the script for the fixed version
Originally posted 99 months ago. (permalink)
steeev edited this topic 99 months ago.

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).