You aren't signed in     Sign In    Help

Flickr Hacks / Discuss

Current Discussion

Help with HTML badge - Can I delete the "www.flickr.com"???
Latest: 4 hours ago
Desktop photo manager for Flickr..
Latest: 8 hours ago
PICLENS -- Cinematic Viewer for Flickr & Images
Latest: 11 hours ago
GM Script: Multi Group Sender - Send your image to multiple groups at once
Latest: 14 hours ago
Wanted: Script For Counting Votes Of A Contest.
Latest: 15 hours ago
GM Script: Flickr Count Users Post Thread
Latest: 21 hours ago
GM Script: AllSizes+ v1.44
Latest: 2 days ago
demote admin
Latest: 2 days ago
AutoPager can keep GM active on "Infinit Scrool...
Latest: 2 days ago
How to back up flickr??
Latest: 2 days ago
Script needed
Latest: 2 days ago
Request: Replies to Threads (counting votes)
Latest: 3 days ago
More...
spacer image

GM Script: Flickr EXIF Decorator

view profile

Chubby Bat  Pro User  says:

Hi there,

Here's a GM script to add a little translucent overlay to a photo when you hover over it. The overlay currently displays aperture, shutter speed and ISO settings, where they're available, but I'm open to suggestions for improvements.

You can download the script here:

http://userscripts.org/scripts/show/9476

Here's how it looks in action:



Enjoy!
Originally posted at 5:50AM, 26 May 2007 PDT ( permalink )
Chubby Bat edited this topic 15 months ago.

view photostream

tmac0381  Pro User  says:

Nifty tool. Thanks!
Posted 15 months ago. ( permalink )

view photostream

bitrot  Pro User  says:

Fabulous - works a charm!

I have Gill Sans on Windows, but it's called "Gill Sans MT" so it doesn't get picked up. I wonder if you could add that to the font list in a future version?
Posted 15 months ago. ( permalink )

view photostream

Hugo*  Pro User  says:

Very nice one !
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Nice call Mark, I'll add Gill Sans MT
Posted 15 months ago. ( permalink )

view photostream

RMEIKLEJ  Pro User  says:

Chubby Bat Very nice hack
Posted 15 months ago. ( permalink )

view photostream

>Solnyshko<  Pro User  says:

very useful - thanks!

btw fyi it doesn't appear to work on private photos
Posted 15 months ago. ( permalink )

view photostream

Werner Wattenbergh  Pro User  says:

Fantastic script - thanks!
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Thanks for the tip-off Solnyshko. The GM script calls the Flickr API "unsigned", which means it doesn't associate the call with any particular user. As a result, the script doesn't have permission to access metadata for photos that aren't public.

I could get around this by building in an authentication routine - i.e. you'd get redirected to one of those "I allow application X to access my Flickr account for viewing" pages. Personally I think that's a bit heavyweight for a GM script, but if enough people think it's worth doing I'll certainly investigate.

All the best,

Simon
Originally posted 15 months ago. ( permalink )
Chubby Bat edited this topic 15 months ago.

view photostream

spoonergregory  Pro User  says:

Great script, very useful. Well done!
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Chubby Bat, very nice overlay, smart way of showing it. For the auth, it's not how hard as you think, check out how it's done in that script:
More EXIF info

The method is explained in that thread:
Greasemonkey EASY authenticated API call
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Thanks for the tip mortimer, I'll check that out!
Posted 15 months ago. ( permalink )

view photostream

>Solnyshko<  Pro User  says:

one other thing, and I don't know if this is addressable but there's a resource conflict of some kind when used in conjunction with mortmer's photomagnifier - things grind down appreciably when both are running at the same time - temporally disabling EXIF decorator sees frame rates perk up again (when actively using photomagnifier).

EDIT: maybe I was imagining this - as it no longer seems to be problem! hmmm
Originally posted 15 months ago. ( permalink )
>Solnyshko< edited this topic 15 months ago.

view photostream

AnnaRenee  Pro User  says:

great script! : )
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Thanks Solnyshko, I think the issue you saw with EXIF Decorator and photomagnifier was to do with EXIF Decorator's over-enthusiastic use of mousemove listeners. I've fixed that now, if you download a fresh copy you should find it plays much nicer now.
Originally posted 15 months ago. ( permalink )
Chubby Bat edited this topic 15 months ago.

view photostream

>Solnyshko<  Pro User  says:

great stuff, thanks. Can I just over install or is it best to remove EXIF Decorator beforehand? not terribly knowledgeable about the workings of GM scripts as you can tell ;)
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

I think you ought to be able to over-install, but I've seen instances where I've ended up with multiple copies of the same script installed, so maybe best to uninstall first.

All the best,

Simon
Posted 15 months ago. ( permalink )

view photostream

jciv  Pro User  says:

I really like this extension.

I noticed that sometimes if you hover over the picture while the Add to Groups dropdown is visible the EXIF info is displayed on top of the dropdown and won't go away until you move off the dropdown and picture. Then you must carefully go back onto the dropdown without touching the picture to use it. It doesn't happen with the Add to Sets dropdown.
Originally posted 15 months ago. ( permalink )
jciv edited this topic 15 months ago.

view photostream

CraftyGuy  Pro User  says:

Please tell me that this script respects a person's choice to not to have their EXIF data displayed (via their Flickr account options).
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

No idea I'm afraid Crafty Guy - got a photo/account I can use to test it?

The script's implemented using Flickr's flickr.photos.getExif API call. I would assume that the business logic for that API call respects a user's choice to hide their EXIF data, but that's only an assumption.

(My own personal feeling on this is that if people are that touchy about other people seeing their EXIF data, they should remove it prior to uploading to Flickr. But hey, that's just me.)
Posted 15 months ago. ( permalink )

view photostream

CraftyGuy  Pro User  says:

I've temporarily set my account to hide my EXIF data - feel free to try it on my stuff if you want.
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

CraftyGuy: thanks for that. Glad to report that Flickr's API does indeed appear to honour the request not to publicise EXIF data. Hurrah!

jciv: hmm... I can't replicate that problem, but I definitely don't want to go messing with Flickr's own interface, so I've added a couple of lines to my GM script so that it hides the overlay if you mouse over a Flickr dialog (add to group, add to set, blog this photo, etc). Please grab a fresh copy and let me know how you get on.
Originally posted 15 months ago. ( permalink )
Chubby Bat edited this topic 15 months ago.

view photostream

jciv  Pro User  says:

Thanks for checking on that. Before I tried the new copy I was unable to reproduce it anymore either. It was simple to cause earlier, but just refuses to happen now. I guess Flickr could have been playing with some of the code today and caused it. Whatever it is, it seems solved now. You can probably safely remove those extra lines.

I think I prefer the behavior of the previous version, though maybe it is my imagination that it is different. Now you see the small version of the overlay when on a Flickr dropdown so it flips back and forth more as you move on and off the dropdown.

I don't really get what the small overlay is for anyway. It is kind of cool that the overlay does something more than just sit there (I like toggling it back and forth), but I don't see any real purpose. Maybe it will be more useful if the script expands to cover more info.
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

jciv Not sure what you mean by the small version of the overlay. I suspect you might have two copies of the script installed - one of which is a copy of an earlier version (which contained only one line of text - no camera model details).

Try popping open your Greasemonkey preferences, uninstalling any and all instances of Flickr EXIF Decorator, then re-installing - that should cure it.

All the best,

Simon
Posted 15 months ago. ( permalink )

view photostream

jciv  Pro User  says:

Thanks. That was the cause of the small version.
Posted 15 months ago. ( permalink )

view photostream

obrazu  Pro User  says:

Chubby Bat: great script man, I really like the overlay delivery.

I'd be interested in the ability to click on the overlay to take you to the actual exif page for that photo. Just an Idea.

Thanks
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

obrazu You know what the worst thing is about writing Greasemonkey scripts? Someone always come up with just one more cool feature that you just can't resist adding, then all of a sudden your wife gets mad because you spend all your time writing Greasemonkey scripts! This is just such a cool idea - provided I can sneak it under the wife's radar it'll be done soon... :-)
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

obrazu It's done! The wife didn't even notice! Bwoa-ha-ha-haaa!

http://userscripts.org/scripts/show/9476
Posted 15 months ago. ( permalink )

view photostream

>Solnyshko<  Pro User  says:

hmm... getting a repeating failure when attempting to install (I unistalled the earlier edition before attempting this fresh install)

Error installing user script:

[Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsILocalFile.copyTo]" nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)" location: "JS frame :: chrome://greasemonkey/content/config.js :: anonymous :: line 148" data: no]

Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Solnyshko See my reply to this thread - I've had GM do this a few times with various scripts, don't know why.
Posted 15 months ago. ( permalink )

view photostream

>Solnyshko<  Pro User  says:

your solution worked a charm

thanks (again!)
Posted 15 months ago. ( permalink )

view photostream

jciv  Pro User  says:

I figured out the overlay onto of the dropdown wasn't solved like I thought. I just didn't realize the cause so was not timing things just right. I can still not reproduce it every time, but when I do, it only happens when I move the cursor over the photo after I hit the group button but before the full dropdown appears (while the loading message is there). Once I get it to appear over the loading message it will reappear above the dropdown until reload even if the dropdown and your EXIF overlay are hidden and redisplayed.

To reproduce it, it may help if you are downloading some large files to slow down your connection to Flickr a bit. That will give you more time with the loading message up.

This is the end result:
Clipboard03
Originally posted 15 months ago. ( permalink )
jciv edited this topic 15 months ago.

view photostream

mortimer?  Pro User  says:

There is a very strange incompatibility with the "Smilies and other tools" script.


If you have both script installed, the exif info from the decorator are
copyed at the end of your comment. I tried to find the problem, but I
don't see what it ca be. Any idea Chubby Bat?
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

mortimer? I couldn't reproduce this bug - can you possibly give me an example of what you do to precipitate it?
Posted 15 months ago. ( permalink )

view photostream

Tup'  Pro User  says:

Thanks a lot Chubby, your script is perfect. A must have!
Posted 15 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

You're welcome Tup, really glad you like it! :)
Posted 15 months ago. ( permalink )

view photostream

obrazu  Pro User  says:

Chubby Bat: Wow thanks for that, sorry it took me so long to notice :D
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Chubby Bat It's easy to reproduce (and I am not the only one to have seen that):
1- install the "Smilies and other tools" script.
2- install your script
3- go to a photo with EXIF data. press the preview button of the comment (without typing any text)
4- the preview will show you the content of the EXIF Decorator. with the html etc...

I tested with the Exif decorator on the top of the comment tool in the list, but also with the decorator under the comment tool, and the problem is the same.
Originally posted 15 months ago. ( permalink )
mortimer? edited this topic 15 months ago.

view photostream

Chubby Bat  Pro User  says:

mortimer? Sorry, I still can't replicate this, I've tried Jessica's original script and the version you contributed later on in that thread. With the Comment Tools script active (so that I see the button bar on top of the rich text comments box), if I leave the box empty and click preview I get a message saying: "An empty comment box? That won't work!". If I do enter something and then press Preview, the preview is just what I typed as usual.

I suspect there may be some third script that's interfering with EXIF decorator and Comment Tools to cause this problem. Have you tried disabling all your other other Greasemonkey scripts and trying again?

(If it matters, I'm using GM 0.7 on FF 2.0.0.4 on a Mac.)

Feel free to contact me direct on chubbybat(at)gmail.com if that's easier.

All the best,

Simon
Posted 15 months ago. ( permalink )

view photostream

J.Chin Photography  Pro User  says:

I am having problems with the EXIF script and the Comments Tools script. I tried EXIF with the Buddy Icon Reply script and it too is giving a problem.

The EXIF Decorator is attaching itself to comment replies. It that suppose to happen? I hope not.

The other scripts works fine. Just seems that EXIF is appending itself to the comments. So I had to uninstall EXIF Decorateor.

Please fix. Thanks.

BTW, this is a new GreaseMonkey install and no other scripts are installed.
Originally posted 14 months ago. ( permalink )
J.Chin Photography edited this topic 14 months ago.

view photostream

Chubby Bat  Pro User  says:

J.Chin See earlier in this thread - you're not the first person to report this, but I've been unable to replicate it and hence can't determine what the problem is, or which script (if any) is to blame. If you can give me step-by-step instructions on how to replicate the problem on your machine I'll try to reproduce it here.
Posted 14 months ago. ( permalink )

view photostream

J.Chin Photography  Pro User  says:

Chubby Bat, I sent you a PM.
Posted 14 months ago. ( permalink )

view photostream

Chubby Bat  Pro User  says:

Thanks Johnny, got your PM but still no dice I'm afraid - even with those extensions installed I don't see the problem you're reporting.

I assume you've also contacted the authors of the other Greasemonkey scripts to see if they've got any suggestions? Or did you just assume that EXIF Decorator was at fault? (Knowing the way EXIF decorator works, I can't imagine that it is, but while I can't even replicate the problem you're describing it's hard to confirm that.)
Posted 14 months ago. ( permalink )

view photostream

bitrot  Pro User  says:

J.Chin > "Please fix."

Everyone would do well to remember that GM scripts are produced "as is" in the author's own time. You're not a customer of some corporation. You haven't paid for it. If you don't like it, either offer some help in tracking down the problem or just uninstall it or write your own.

Jeez, this "me! me! me!" attitude really pisses me off. Keep hectoring people like that and you'll mysteriously find they stop giving you nice stuff for free.
Posted 14 months ago. ( permalink )

view photostream

bwilderbeast says:

I really like Exif decorator but since installing it (I assume it's the reason) the same exif data it shows on an image has been appended to my comments. Is there any way of stopping this?
Posted 11 months ago. ( permalink )

view photostream

nashsnazzy says:

Is there a way to edit the script to show more of the available tags?
Posted 6 months ago. ( permalink )

view photostream

delfi_r  Pro User  says:

Thanks for your fancy script, It's nice to see the Exif data without leaving the image.
Originally posted 4 months ago. ( permalink )
delfi_r edited this topic 4 months ago.

view photostream

-Passenger-  Pro User  says:

I love this one! Seriously... thanks Chubyby Bat!
Posted 4 months ago. ( permalink )

view photostream

dodob19  Pro User  says:

Thanks for writing one of my favorite Greasemonkey scripts! I'm happy to report that Flickr EXIF Decorator is working under Firefox 3 RC2 + Greasemonkey 0.7.20080121.0.

May I suggest one small change?

Currently, the script throws a data.photo error when the image has no EXIF data.

Adding a check to line 83:
var exif_array = data.photo.exif;

like so:
var exif_array = (data ? (data.photo ? data.photo.exif : null) : null);

prevents this error. In any case, the error is inconsequential. :)

Again, thanks for the great script!
Originally posted 2 months ago. ( permalink )
dodob19 edited this topic 2 months ago.

Would you like to comment?

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

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr Hacks discussion threads
Add to My Yahoo!