Extension:ImportFreeImages

The ImportFreeImages extension allows users to import properly licensed photos directly into their wiki from flickr.

License
Copyright 2006 Travis Derouin, wikiHow

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA

Pre-requisites
Your PHP configuration must have set allow_url_fopen to On.

Options

 * Configure  to point to a (possible set of) template that takes the flickr user id, user display name and photo id as parameter. Example:

This photography was imported from flickr. This photo was originally taken by and the original photo can be found here: http://www.flickr.com/photos//

This file is licensed under Creative Commons Attribution 2.0 license. صور ورود The license id of the imported image will be appended to the  name. So if you are using 'flickr', create a template 'flickr4' for the photos that are imported with the license id 4. See here for all possible license ids.
 * Configure  and   if you desire.
 * Change which license photos are searched by changing, by default it's '4', which is CC Attribution License. Multiple licenses are searchable by using a comma-delimited list (such as '4,5'). See more info here.
 * Change how the results are sorted by altering, see more here.
 * Change  to   if you want the tool to import the 'original' (or 'large' if original doesn't exist) version of the image, which is most likely the largest version of the image. Otherwise, the 'medium' version by default will be imported.
 * Change  to   to prompt the user for a destination filename for the photo (using a JavaScript prompt), use false if you'd prefer just to use the title of the photo as the filename.
 * can specify whether to search by text or tags. See here for more information on this.
 * - appends a random to the filename to avoid overwriting existing files. (e.g. specifying a desination filename of Punk may store the file at Punk-1934.jpg)

Bugs and enhancements
Bugs or feature requests can be submitted via Phabricator.

Other ideas offering radio buttons and checkboxes to allow users to customize which licenses are searched and how the results are sorted. Other API sources could be added to complement the flickr functionality.