Last modified: 2013-04-22 16:14:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30731, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28731 - Add an interface for uploading files directly from Flickr
Add an interface for uploading files directly from Flickr
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Ryan Kaldari
:
Depends on: 20512 42308
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-28 09:36 UTC by Lupo
Modified: 2013-04-22 16:14 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Zip file containing the Flinfo 2.3 distribution (148.51 KB, application/octet-stream)
2011-05-02 19:02 UTC, Lupo
Details
Zip file containing the Flinfo 2.4 distribution. (101.73 KB, application/octet-stream)
2011-05-11 22:00 UTC, Lupo
Details

Description Lupo 2011-04-28 09:36:08 UTC
1. FlickrChecker should not expose the Flickr API key in the source.

2. It should also be able to handle static.flickr.com URLs.

3. 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/

4. 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.

5. 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).
Comment 1 Lupo 2011-04-28 13:05:03 UTC
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.
Comment 2 Ryan Kaldari 2011-04-28 16:58:28 UTC
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.
Comment 3 Lupo 2011-04-29 06:30:20 UTC
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.
Comment 4 Lupo 2011-05-02 19:02:58 UTC
Created attachment 8483 [details]
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.
Comment 5 Ryan Kaldari 2011-05-02 20:02:09 UTC
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.
Comment 6 Lupo 2011-05-11 22:00:21 UTC
Created attachment 8529 [details]
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.
Comment 7 Mark A. Hershberger 2011-05-13 11:40:28 UTC
(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.
Comment 8 Lupo 2011-05-13 17:24:28 UTC
(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.
Comment 9 Bugmeister Bot 2011-08-19 19:12:39 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 10 Mark Holmquist 2012-08-23 20:48:24 UTC
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/
Comment 11 Ryan Kaldari 2012-09-01 00:05:58 UTC
Looks like we're currently blocked by bug 20512 :(
Comment 12 Ryan Kaldari 2012-12-07 01:16:21 UTC
This is live now for admins on Commons.
Comment 13 Waldir 2012-12-12 03:05:02 UTC
Is there any reason only individual photos and personal sets (albums) are supported? 

Potentially useful sources are:
- group pools -- http://www.flickr.com/groups/FOO/pool/ and http://www.flickr.com/groups/FOO/pool/USERID/
- users' lists of favorites -- http://www.flickr.com/photos/USERID/favorites/
- users' photostreams -- http://www.flickr.com/photos/USERID/
Comment 14 Waldir 2012-12-12 03:24:07 UTC
Also:

- user galleries (albums of photos by many people, curated by a user) -- http://www.flickr.com/photos/USER_ID/galleries/GALLERY_ID/
- user collections (groups of albums) --  http://www.flickr.com/photos/USER_ID/collections/COLLECTION_ID/
Comment 15 Ryan Kaldari 2012-12-12 09:01:16 UTC
Feel free to add these to https://bugzilla.wikimedia.org/show_bug.cgi?id=42964
Comment 16 Waldir 2012-12-12 18:21:04 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links