Page MenuHomePhabricator

Add an interface for uploading files directly from Flickr
Closed, ResolvedPublic

Description

  1. FlickrChecker should not expose the Flickr API key in the source.
  1. It should also be able to handle static.flickr.com URLs.
  1. I didn't check when exactly this is called. But note that if you extract the id from the URL, you may get back license information even for malformed URLs. Example: consider the URl http://www.flickr.com/photos/27302612@N03/3087959051 pointing to Marc Benton's CC-BY-NC-SA photo of Randy Orton. Now consider that the user just typed http://www.flickr.com/photos/27302612@N03/30879590, leaving off the last two digits. The URL as a whole is invalid, but unfortunately, 30879590 is also a valid Flickr photo ID, but for a completely different photo by a different user, namely Ben Sutherland's CC-BY photo at http://www.flickr.com/photos/bensutherland/30879590/
  1. If you're already getting the license from Flickr, you could also automatically get the author, description, geolocation, and the file at the largest available resolution.
  1. If you want, I could provide the Flinfo PHP sources, where we've already dealt with all that stuff. (And which also can deal with ipernity and panoramio).

Version: unspecified
Severity: enhancement

Details

Reference
bz28731

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:27 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz28731.

Oh, and I forgot another nice feature of Flinfo: it uses the Flickr blacklist at [[:commons:User:FlickreviewR/bad-authors]] to catch freely licensed media from known active flickrwashers. That could also be built into FlickrChecker.

Sounds great. Please post the source and I'll be happy to integrate it. Or feel free to hack on Flickrchecker yourself if you feel inspired. The existing version is very basic and not yet integrated into UploadWizard.

Ok; I've asked the second author of Flinfo whether he'd agree to publishing the sources and licensing them as GPL. If so, I'll post a zip here; otherwise, I may still send you the code privately, so that you can at least see what we did.

Zip file containing the Flinfo 2.3 distribution

Ryan, I've posted the Flinfo 2.3 source distribution (License: GPL) as attachment. I hope it's of some use to you guys.

attachment flinfo_2_3.zip ignored as obsolete

Awesome, thanks Lupo! It may be a while before we get back to this though, as the Flickr integration has been put on a low priority.

Zip file containing the Flinfo 2.4 distribution.

Obsoletes earlier 2.3 zip file. Flinfo 2.4 fixes a number of minor bugs, contains a much newer phpFlickr library, and can retrieve information about Picasa images.
See the contained "readme" file.

License for flinfo is of course still GPL; phpFlickr is LGPL. The Curly.php cURL wrapper contained in ./lib is also LGPL. Maybe it's useful for somebody.

Attached:

(In reply to comment #5)

Awesome, thanks Lupo! It may be a while before we get back to this though, as
the Flickr integration has been put on a low priority.

Asking Kaldari for info

Should at the very least surface license info from Flickr.

(In reply to comment #7)

Asking Kaldari for info

Should at the very least surface license info from Flickr.

I trust he'll know what to do with it when such enhancements ever make it into implementation. Flinfo is a tool to extract image information (including license and the stuff I mentioned in the OP) for images stored at other image repositories. It currently supports Flickr, ipernity, panoramio, and Picasa. Flinfo lives at http://wikipedia.ramselehof.de/flinfo.php
running actually V2.4a (no phpFlickr library anymore; it's quirky). The newest source is at http://wikipedia.ramselehof.de/flinfo/resources/src/

I just updated the V2.3 zip file here because I found a few bugs shortly after I'd posted it.

There's currently a huge (HUGE) gerrit patch in the works to fix up the Flickr-related code. Check it out: https://gerrit.wikimedia.org/r/#/c/13124/

Looks like we're currently blocked by bug 20512 :(

This is live now for admins on Commons.

Is there any reason only individual photos and personal sets (albums) are supported?

Potentially useful sources are:

Also:

(In reply to comment #15)

Feel free to add these to
https://bugzilla.wikimedia.org/show_bug.cgi?id=42964

Done, thanks for pointing me to the correct place.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:27 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM