Facebook like image tagging

falieson

Joined: 2006-04-04
Posts: 11
Posted: Tue, 2006-04-04 08:29

Facebook has this great feature that allows you to select a portion of a picture and have that image mapped to a user. They call it tagging.

Example: you select a friends face in a picture and tag it with their username. Then a list can be generated automagically of all the people in the picture, Each user has a list of all the pictures they appear in, and when you click on that tagged portion of the picture it goes to that users profile.

Its pretty awesome and I think would be a great add on module

AttachmentSize
tagged.JPG42.96 KB
 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Tue, 2006-04-04 10:22

Yes.
Yhere is already feature like this in G1.5. afaik. (if there isn't then it's still under development)
Once it's get ported into 2.x for sure.
You should go and vote for this feature, that helps things to go faster.. :)
http://gallery.menalto.com/sfvote

 
falieson

Joined: 2006-04-04
Posts: 11
Posted: Thu, 2006-04-06 22:15

haha, I didn't know about sfvote - that was my first post. Thanks for the point joe7rocks!

 
hanclimax

Joined: 2006-04-25
Posts: 1
Posted: Tue, 2006-04-25 01:03

hey falieson,

Im curious as to whether or not you were able to find that facebook-like feature on gallery?

Han

 
falieson

Joined: 2006-04-04
Posts: 11
Posted: Wed, 2006-04-26 09:17

I found the voting section for them to make it

 
themafia69

Joined: 2006-02-28
Posts: 36
Posted: Tue, 2006-11-14 19:36

Hey which plugin is the correct one? area naming?

 
teman

Joined: 2004-01-11
Posts: 5
Posted: Fri, 2006-12-08 03:50

Has this feature been added? Where can I find it?

 
benkenobi

Joined: 2007-02-05
Posts: 1
Posted: Mon, 2007-02-05 10:29

I could definitely use this feature as well... Anyone wanting to vote on it, look for this feature:

"Labeling areas of images"

 
baseball2487

Joined: 2007-02-08
Posts: 13
Posted: Fri, 2007-02-09 03:17

Thanks for adding it to the vote list - I think it would be a useful feature to have as well.

 
sandbag
sandbag's picture

Joined: 2003-05-25
Posts: 52
Posted: Sun, 2007-06-03 20:40

Is this feature available in 2.2, I haven't been able to find it?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-06-03 22:29

G2.2 has the "keyalbum module". and there's a much better "tags" module available through site admin -> plugins -> get more plugins -> community repository.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
sandbag
sandbag's picture

Joined: 2003-05-25
Posts: 52
Posted: Sun, 2007-06-03 23:24

I have the tags module, but I can't see that allows to do image maps.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-06-04 00:18

Gotcha, my mistake. No, there's no image map module for G2.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Mon, 2007-06-18 10:50

So, am I right in assuming that some people are jumping on this because of the multiple meaing of the term "tag"?

The Facebook app seems to use an imagemap to base the tag on so what we need is something that allows us to store multiple coordinates and then associate a user_id, or just a textfield (ie: a name) with those co-ord.

Surely the actual click, store side of things isn't a big problem to resolve... the issues are going to be handling permissions, associating existing users, and notification.. Oh and don't forget there's implications for intergrations like phpbb2 as well...

Am I about right with this?

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Sun, 2007-09-23 17:14

i'm working on the module for this now as i've grown tired of waiting for it. suppose thats the only way the gallery2 project is going to grow. My ImageMaps module should be complete soon. check back soon i'll keep this thread up to date, and try and get something uploaded to sourceforge. anyone interested can help beta testing it. cheers guys

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Sun, 2007-09-23 17:28
tsfftf wrote:
i'm working on the module for this now as i've grown tired of waiting for it. suppose thats the only way the gallery2 project is going to grow. My ImageMaps module should be complete soon. check back soon i'll keep this thread up to date, and try and get something uploaded to sourceforge. anyone interested can help beta testing it. cheers guys

If you want a hand with development and/or somewhere to act as a development repository then drop me a quick PM as this is on my list of to-do's as well... Just haven't found the time myself.

I've got subversion up and running for all my other phpbb2 and my old galleryintegration mod code so if you're familiar it'd probably make it a lot easier for myself and/or other to collaborate on this.

Also, someone gave me a heads up about something similar on coppermine which may well help.
http://coppermine-gallery.net/forum/index.php?topic=41715.0

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Thu, 2007-10-11 16:09

well may aswell go with the subversion then. i've pm'd you with further details, so lets get the ball rolling on this one. We need to get the word going around the forums to get more points on the feature vote, then hopefully we can get a few more devs onboard. anyone else interested in helping post in this thread and i'll contact you via pm. thanks guys.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Thu, 2007-10-11 21:27

Ok... got your PM and I've PM'd you back...

 
jplichta

Joined: 2007-10-15
Posts: 4
Posted: Mon, 2007-10-15 15:57

Hi Guys,
I haven't done any Gallery module development but have done quite a bit of Drupal/General PHP development and would really like to see this "Facebook tagger" module get off the ground. Contact me if you interested in another hand. -Jeremy.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Mon, 2007-10-15 16:20
jplichta wrote:
Hi Guys,
I haven't done any Gallery module development but have done quite a bit of Drupal/General PHP development and would really like to see this "Facebook tagger" module get off the ground. Contact me if you interested in another hand. -Jeremy.

Yep... I'm sure we could use all the help we can get.

Apologies for the delay on getting the SVN setup... I'll organise it all either tomorrow evening or Wednesday when I'll finally have some time to think straight :P

 
jplichta

Joined: 2007-10-15
Posts: 4
Posted: Mon, 2007-10-15 16:26

Sounds good. Let me know when you have it set up. I can also host a svn repository on my machine if you prefer... In the meantime, do you have any good pointers on where to get started on Gallery module development?

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Thu, 2007-10-25 21:06

i've pm'd you back websnail... and i've registered on your message board snailsource, haven't seen the dedicated forum you said you were going to set up. also, have you set up the svn yet? we need somewhere to work on it from. if splichta can get this done then go ahead, just pm me with some log in details please.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Thu, 2007-10-25 21:54

Whoops... my bad... got caught up with some CSS coding and book learning I had to do...

Sorting this now.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Thu, 2007-10-25 22:17

Right... SVN is up... forum is up and sent details out by email or PM.

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Wed, 2007-10-31 10:57

right, this module development is underway now, it has moved to:

http://www.snailsource.com/forum/viewtopic.php?p=20175#20175

go there to track its status.

for everyone that wants to see this module happen, get involved in some way. the more people we have on board the quicker you will get the module. i'm not just saying that for the sake of it either. if you want this module to seriously happen, there'll be some way you can help to speed it up.

the first objective is to port the last one to g2 and then build on it i.e. approval options, 'mytags' page showing tags of a particular user and tags left by a particular user etc etc.

lets get this module working.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-10-31 18:33

BTW: You're welcome to use the official SVN repository.
We have the gallery-contrib project @ sf.net for community development and all modules / themes in gallery-contrib can be installed easily with "site admin -> plugins -> get more plugins".

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Thu, 2007-11-01 22:18

do you just need to be registered on sf for that? i have a regular account there, does it need to be upgraded to upload stuff to the gallery bit?

there's a guy thats ahead of me on this already, here's what he wrote on snailsource:

Today I got pretty far on hacking up some test javascript to move around a rectangle around a image using divs. I think this will be the basis of the code that allows the user to "select" a region of the image. So, for now I think I have the javascript part of this module mostly figured out (with the possibility of adding some cool ajax stuff once the module actually is a little further along).

sounds quite promising if you ask me. i've only written the template pages from this.

the coolest feature i envisage with a module like this would be a 'my tags' page or 'view tags' page with this on:

1. Photos of you that others have tagged:
(thumbnails appear here according to theme settings, options to sort by recently tagged, or what albums they are from etc)

2. Photos that you have tagged:

3. approval queue for tags yet to be confirmed.

maybe this module would be better tied in with the existing 'tags' module. it might be confusing but i can see, this page certainly, relying on virtual albums? what do you think valiant?

by the way, i take it the flickr style tags element Bharat is working on is just plain text tags? i notice flickr now also has photonotes aswell.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-11-01 23:26

> do you just need to be registered on sf for that?

no, you'll need to be a member of the gallery-contrib project.
if you'd like to use gallery-contrib's SVN repository, drop me a PM with your sf.net account and you'll get it.
of course we only give it to users that will actually put some code there. :)

> maybe this module would be better tied in with the existing 'tags' module.

i don't think so. the tags module is already pretty large and will get even larger when we'll add multi-language support. and image-tags are pretty different too.
we'll probably add module-dependencies in gallery 2.4. so your module could depend on the tags module and use its tagging features while you add the new user-interface and some views.
until that happens, you'll probably have to copy some functionality from the tags module. but you'll need your own db table anyway, storing image tags is a bit different than storing normal tags. [coordinates + itemId + term] vs [itemId + term]

> i take it the flickr style tags element Bharat is working on is just plain text tags?

where did you read that bharat's working on flickr style tags? the tags module is by termitenshort.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jplichta

Joined: 2007-10-15
Posts: 4
Posted: Fri, 2007-11-02 01:28

I don't know that much about gallery or the other tag modules out there, however I think it would be simpler to have this photo tagging module be its own thing, since as valiant mentioned, it has quite different requirements. Thats my thought anyway.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Mon, 2007-11-05 21:41
jplichta wrote:
I don't know that much about gallery or the other tag modules out there, however I think it would be simpler to have this photo tagging module be its own thing, since as valiant mentioned, it has quite different requirements. Thats my thought anyway.

Agreed... there's not really a lot of commonality here. In fact the keyword "tag" seems to be about it.. Beyond that it's just relating to specific items which of course all modules do.. :)

@Valiant: Thanks for the SVN offer.. Hadn't considered that.. I think we'll start with mine for now but transfer across when we're out of the initial dev' phase.

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Tue, 2007-11-06 13:06

Thought it'd be worth noting that one of the key requirements that we've agreed albeit in a limited way, is that integration options with other CMS systems that already provide integration with Gallery2.

Of course we already have our own particular CMS systems in mind (phpBB2/3 being mine) so we're not looking to make this purely Gallery dependent or cut too many corners.

Things are shaping up though even if all we've managed is to setup the forum space for this and correct some typos in the login info *cue: blushing on my part*.

 
chasix

Joined: 2005-10-06
Posts: 41
Posted: Tue, 2008-01-15 00:13

Please take a look at this link (if you have not already.) A script has been written and released... perhaps this script can be ported to a Gallery2 module.
Flickr on their webpage acknowledges this link for their implantation.
http://blog.flickr.com/en/2005/03/18/etech-live-screen/

Link: http://www.fotonotes.net/

 
barkbarkuk

Joined: 2006-11-10
Posts: 8
Posted: Mon, 2008-01-21 01:22

Hi, I was going it alone on dev of my own module for this for a while and then discovered this thread. It looks like the forum mentioned by tsfftf was last posted to on Nov 08, 2007. Is this dev work ongoing, or is paused due to time constraints?

As valiant pointed out to me, I should try and make sure I know what all other interested parties are up to on this so that together we can create a single quality module (or multiple, related, if that's what it takes) that meets our needs (and any additional needs put into G2 feature requests).

I'm not trying to step on any toes, but have created a codex page for the module I was conceiving and am trying to put links in to all other image region relevant stuff. Please see: http://codex.gallery2.org/Gallery2:Modules:imagenotes

It would be great to finally see this in G2, so hopefully together we can make it happen. I'm going to carry on a little with the code I already have, but if anyone has made significant progress and plans then I'd love to be pointed in the right direction.

 
isoga

Joined: 2003-08-19
Posts: 4
Posted: Mon, 2008-01-28 20:34

Hi - An extension to this idea. Gallery should use the facebook API so that people searching facebook can find people tagged in Gallery (not sure if this is poss, I guess it would be a FB app) And also, should be able to tag gallery pics based on the list of friends in FB. (I think FB's new API would allow this http://developers.facebook.com/news.php?blog=1&story=73)

David

 
jplichta

Joined: 2007-10-15
Posts: 4
Posted: Mon, 2008-01-28 23:16

chasix and barkbarkuk: I was one of the people who started to do some work on this module a while ago. I did not get very far and have been putting it off for a while due to school and other commitments. The only work I committed to svn is some experimental javascript code I was playing around with to select rectangular images of a rectangle (the code is a bit hackish and probably not optimal). Also in svn should be a stub of a gallery module.... as far as I know no one else has worked on implementing much else. If you want to check to see what is currently in svn and possibly contribute please PM WebSnail (listed further up in this discussion) to receive svn access.

 
barkbarkuk

Joined: 2006-11-10
Posts: 8
Posted: Sat, 2008-02-16 01:46

jplichta: As I'd already got some of my own code together, this is where I've been continuing from. I'm still not a huge amount further in implementation as I've been travelling around a bit, but my plans have got a bit further (see the wiki link I posted earlier).

In terms of implementation I've got draggable, resizable, focusable regions working reasonably in Firefox and IE7, creatable with a rubber band within the image for annotation.
I'm now going to work through the design a little more and hopefully get something semi-usable and extensible nailed.

isoga: I was already considering facebook tags integration, but see it as a bit of an add on rather than something in the core of this module. I plan on hooking into the existing tags module for image tagging (this module should do notes and other annotations and not just tagging).
I'm not sure if the facebook stuff (and other 3rd party software) linking into the tags module to provide suggestions might be the right way to go with this. But I'm in agreement that using tags from other systems would be rather cool. There should be a reference from the G2 objects and tags and the 3rd party tags somewhere.

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Sun, 2008-02-17 11:52

guys: i posted ages ago saying I'd started it and i'd upload what i'd done: unfortunately works got in the way of it sorry.

barkbarkuk seems to be ahead of everyone else with this.

although I would add that I've been thinking about this recently, I've said it before, but I reckon ultimately this should be part of the tags module.

the last gallery1.5 version had it in as ImageMaps. Lets face it, no-one calls them image maps, and if its added into the tags module the 'virtual albums' will be able to be made use of. Its a tag - simple as.

My other plan for this thing was to replicate the facebook style so that along the top where Site Admin and Your Albums links are you also have 'My tags' which shows a page split in two: photos you have been tagged in by other people and photos that you have tagged. In fact the nearer to facebook photo tags it is the better, its the best implementation of it i've seen thus far - just little things like if you're in an album the first users in the selection box drop down that show up are people already tagged elsewhere in that album etc. Perhaps even a 'photos you are in with other people' area but that'd be getting quite fancy.

Any feedback welcome!

 
barkbarkuk

Joined: 2006-11-10
Posts: 8
Posted: Mon, 2008-02-18 03:56

tsfftf: I've previously spoken with valiant on the ICQ dev channel and at the time he thought I was planning on extending the tags module and pointed out reasons why this wasn't such a good idea, and I agree.
G2 is a modular system. The tags module is already good at what it does and is already a reasonably sized chunk of code. Not everybody that wants to tag an image wants to be able to tag a specific region of that image, so by adding to the existing tags module we'll be adding overhead that they don't need.

What I envisioned is to have a new module that will make use of the existing tags module. When an image region is tagged, the tags module will be responsible for management of the tag itself and the new module will be responsible for holding a reference to that tag and positional information.

Also, image tagging (a la facebook) isn't the only thing that people seem to be interested in. On the wiki page (link above) I've tried to put a few use cases that people have suggested (or I've thought up myself). A single module should be able to provide the framework for image annotations in all their forms and other modules should be able to extend this functionality in the future (which is why I'm taking a little time at the moment trying to work on the best way to build this extensibility in), whilst the first draft should cover most of what people want (image region tagging and image notes).

As for the virtual albums stuff, that should already come from the tags module. In fact, if boolean searches (I think this was a summer of code project) are working then you should be able to check for two tags associated with one image.

For search stuff the image region code should be able to add things like searching for when an image region is a certain percentage of the picture area, but the tags assigned to an image is dealt with by the tags region alone.

I suppose maybe the image regions showing the searched for tags should be highlighted if the user desires?

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Thu, 2008-02-21 22:56

I kind of see where you're coming from. If you're thinking of a 'helper module' that could be a good way forward. Perhaps 'associating' a region with a tag would overcome this. I don't reckon it 'ImageMaps' should be seperate because to get the functionality and capability people want its pretty fundamental that it integrates with tags.

basically tags + the selection is what we need and a personalised page like I said before. Its good to hear that you're making progress on it. the tags module to do list look pretty good in my book.

one thing that'd be important is adding regions to previously created instances of tags.

yeh, your last suggestion sounds good.

also one of the things I imagined would be the most crucial thing, i think i've noted this elsewhere, is that the algorithm that produces the coordinates be able to work out ratios so that intermediate images have the tags on...

 
barkbarkuk

Joined: 2006-11-10
Posts: 8
Posted: Mon, 2008-02-25 03:02

Yes, essentially that's what I was saying an image region is 'associated' with one or more tags. The tags module handles the existence of the tags and the image region module (imagenotes as the thing I'm working on is called) handles their location in the image.

What priority order do you think should be given to tag suggestions?
- Tags associated with image but not an image region yet.
- Tags used in other images in album.
- Tags commonly used with other tags in this image.
- Tags used by the current user before.

Already considered the derivative image sizes differing from the original image size, and potentially rotation too. :-)

As for the personalised page, the two pages you mentioned (things I've tagged, things I've been tagged in) are essentially searches and can be done with just the tags module, so should probably be slotted in just there. I don't think the tags module at the moment has a mapping from a given tag to a given G2 user, so this will have to be added too. Possibly the personalised page thing is yet another module and I suppose you could make it save any number of interesting searches for you to click through.

Oh, and just incase you are interested, I've been updating my wiki page bit again. It'd be awesome if you could think of some other use cases. I'll try and get your personalised page bit in there next time I update it.

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Tue, 2008-02-26 12:52

yeh rotation... i hadn't thought of that, good one!

not got loads of time to write back... I've got all my ideas in a text file. i'll try and get them on the wiki... is my account here synched with the wiki on gallery.menalto.com or do i need to be given privileges for it?

just out of interest, did you work out the algorithm for intermediates/derivative ratio thing yet?

sounds like you're making good progress, keep it up mate!

 
barkbarkuk

Joined: 2006-11-10
Posts: 8
Posted: Wed, 2008-03-12 23:09

Again, slow reply. Sorry. Keep getting sidetracked with other things. You need to create a separate account to edit the wiki, it's a matter of registering though I think and permissions don't need to be given. For the first few edits there'll be a captcha thing just to stop bots from editing everything. :-)

Latest thing I did was take a closer look at how Facebook, Flickr and Fotonotes function to make sure the important functionality is captured and can be recreated. (I added the investigation to the wiki)

Will hopefully get a bit more time over the next few days to take this further. Always a matter of finding the time hey?!

As for intermediates/derivatives ratio, unless I'm missing something I'd assume
full_size_x = derivative_x * (full_size_width / derivative_width)
full_size_y = derivative_y * (full_size_height / derivative_height)
then always store the co-ordinates based on the full image size so that the positioning of image regions is most accurate. When an edit is made on a derivative, always try and keep as much accuracy as possible, only changing co-ordinate values if they are explicitly edited (rather than change all co-ordinates to less accurate ones when only a single co-ordinate was changed).
Erm, was that answering the question you asked?

 
phinze

Joined: 2008-03-30
Posts: 40
Posted: Sun, 2008-03-30 23:11

Hello All!

I am planning on submitting a Google Summer of Code proposal to Gallery to implement this feature. I've read the discussion here and the Codex page that you have going, barkbarkuk, and I see there's a lot of good thought-work that has already gone into this feature.

I've got quite a bit of experience with PHP/MySQL development and XHTML/CSS web design, and I've dabbled in a decent amount of JavaScript as well. This May I'll be graduating with a degree in Computer Science.

I'm hoping that this summer I can work together with the developers who have already started putting efforts toward making this happen, and that I can be useful as a full time developer pushing forward the implementation side of things (which is where it seems like you could use some extra help).

What do you guys think about this idea? Interested in employing a recent CS graduate to realize this feature? :)

 
chasix

Joined: 2005-10-06
Posts: 41
Posted: Thu, 2008-04-03 06:22

Good luck. I think that would be great. I am hoping that the eventual Google Summer of Code winner can multi-task and perhaps expand on existing modules and create a new one for "Image Notes".

 
netbear

Joined: 2007-09-12
Posts: 19
Posted: Tue, 2008-04-08 17:44

I have written a module that dose this kind of image tagging.
See http://gallery.menalto.com/node/76545

 
phinze

Joined: 2008-03-30
Posts: 40
Posted: Fri, 2008-06-13 16:16

Hello again,

I was indeed accepted to work on this feature for Gallery through Google Summer of Code 2008. I am in the process of developing a module I'm calling ImageAreas which will eventually interface with the existing Comments and Tags modules and allow commenting and tagging on individual areas of an image. I have yet to complete an end-to-end prototype, but I hope you'll take a look at the Codex page I have set up for the module and make comments on the discussion page!

http://codex.gallery2.org/Gallery2:Modules:imageareas

I look forward to your feedback.

Paul

 
phinze

Joined: 2008-03-30
Posts: 40
Posted: Fri, 2008-06-27 17:20

Hey all you Facebook-like taggers!

My GSoC project is coming along nicely so far, and I'm ready to have some alpha testers take a look at an early version of my ImageAreas module. I would really appreciate it if any of you would like to help me out! Please see http://gallery.menalto.com/node/78969 for details.

Thanks and keep an eye out for the module's release later this summer! :)

 
vakasoft

Joined: 2009-05-11
Posts: 4
Posted: Tue, 2009-05-12 11:55

what about this?