Flickr Original updated to 1.0.4
Wednesday 12/30/2009 – Category: Uncategorized
Download Flickr Original 1.0.4
Edit:
Sorry guys, I stand corrected. Upon further investigation, the Flickr slideshow queries the API with their own special API key that expires every so often (daily, I assume). It's only when using this special API key that we can see the originalsecret and original format parameters.
If the extension has stopped working for you ("Sorry, Flickr Original could not view/download this photo."), it's because the special API key had expired. Please clear your cache (Firefox caches extension downloads) and re-download the extension which I've reverted it to use my own API key.
So...unfortunately, the ability to "view/download original images even if a user has disabled image downloading—provided that the original image's max dimension is less than 1280px" isn't going to be possible unless I can figure out a way to grab Flickr's special API key every time it changes.
Also, It looks like Flickr has changed the photos.getSizes API to not show the original size if the max image dimension <= 1280px.
I've made yet another update to Flickr Original! Thanks to an idea from Клименков Константин, you are now able to view/download original images even if a user has disabled image downloading—provided that the original image's max dimension is less than 1280px.
Example:
On this photo, you'll see that the "all sizes" option is not available because the owner has disabled photo downloads in their privacy settings. However, when you hit the "view as slideshow" button, the slideshow shows the original image. Looking at the net traffic in Firebug, we can see that the slideshow is calling the Flickr API with the photos.getInfo method.
Upon further investigation, it turns out that the photos.getInfo API returns two extra fields (originalsecret and originalformat) if the original image's max dimension is less than 1280px, even if the user has disabled image downloading. It's also interesting to note that querying an image's large size with photos.getSizes API returns an image cropped to 1024x____ if the original size max dimension is > 1280 but returns the original image if the the original size max dimension <= 1280.
In light of this, the extension has been updated to do the following:
- Checks if an image has an original size available with the photos.getInfo method by checking if the originalsecret parameter exists
- If so, manually constructs the original image url in the format http://farm{FARM}.static.flickr.com/{SERVER}/{ID}_{ORIGINALSECRET}.{ORIGINALFORMAT} so it doesn't need to make an extra API call to photo.getSizes
- If the photo does not have originalsecret set, it is because a) the original image's max dimension is greater than 1280px and b) the owner is not a Flickr pro member or has not enabled downloading of their photos in their privacy settings. In this case, the extension calls photos.getSizes to get the largest size available.
Other updates:
- The extension will now alert when the original size isn't available
- When you are on a photo detail page of a photo that has downloads disabled ("spaceball.gif protected"), the extension now shows the view/download option in the context menu and extracts the Flickr photo id from the browser url
- The extension uses JSON.parse instead of eval() for security purposes
Known issues:
- The extension won't show view/download in the context menu on a photo detail page if you a) right-click on a portion of the image where there is a note (example) or b) the image is yours and you are logged in. To get around this, right-click where there is no note or on the image thumbnail instead.
12 Responses to “Flickr Original updated to 1.0.4”
Leave a Reply
Recent Posts
- Good Word – now with definitions!
(Friday 03/5/2010 – 2 Comments) - Good Word – Words With Friends Word Checker
(Thursday 02/25/2010 – 31 Comments) - Facebook App Development gotchas
(Friday 02/19/2010 – No Comments) - StoreKit SKErrorUnknown
(Friday 02/19/2010 – 1 Comment)

December 30th, 2009 at 3:54 am
[...] Version 1.0.4 available!) (UPDATE: New and improved version 1.0.3 available!) (UPDATE: Firefox 3.5 version [...]
December 30th, 2009 at 3:54 am
[...] Version 1.0.4 available!) (UPDATE: New and improved version 1.0.3 [...]
December 30th, 2009 at 3:57 am
[...] (UPDATE: Version 1.0.4 available!) [...]
December 30th, 2009 at 7:54 pm
Instead of the “original” size; however about download/view the photo with the “highest” resolution.
December 30th, 2009 at 8:26 pm
yeah, that’s a good idea…i’ve had a few people confused when the original size isn’t available. i suppose changing the label in the context menu would make it more clear…
December 30th, 2009 at 10:10 pm
It’s still not working for me. Just came across a picture (not a pro acct) which has original size ((2592 x 3888).
December 31st, 2009 at 1:03 am
@al: could you give an example link?
February 8th, 2010 at 12:12 am
Hi can you please advise us when will the next update for firefox 3.6 be available?
cheers!
February 19th, 2010 at 6:46 pm
In the meantime, you can download the xpi then drag it onto Firefox and check the box “override maxversion compatibility checking.” Or, rename flickr_original_1.0.4.xpi to flickr_original_1.0.4.zip, extract install.rdf, and edit the maxVersion line from 3.5.* to 3.6.*. Then put the updated install.rdf back in the .zip file, rename to .xpi, and drag to Firefox.
Not sure if the guts are 100% compatible, but i did just try it and it seems to work.
February 19th, 2010 at 6:49 pm
Sorry, that comment was for the questions on the original post about 3.6 compatibility.
February 19th, 2010 at 11:13 pm
hey guys, sorry — my blog seemed to have stopped emailing me when i have comments. i’ll try to update to 3.6 and address some of the feedback sometime this weekend. thanks for your patience!
March 2nd, 2010 at 3:27 pm
Thanks Jason, you’re the man dude