Extension talk:ImportFreeImages

favorite extensions ever
Travis, this is one of my favorite extensions ever. Thank you so much. I hope I can find time to help streamline the selection process; it would be great to be able to use this extension with a gallery, whereby you
 * Have a gallery of images on a wiki, each of which has a categorized description page
 * Pass over the gallery looking for substitutes or similar images for each of those sets of categories/tags on flickr, giving the newly-uploaded file a name like "image2" where "image" was the name of the one being substituted

Use case: I could use this to populate, say, the Logos Children's Dictionary, which has great words but poor clipart images, with better images : scriptably upload each of the images, tagged by the word it is supposed to represent. Generate a gallery of these images, from the list of words. Run this extension over the gallery, creating a second gallery, titled "word2" for each word in the list. View the original and final galleries side by side, to make sure the selections were right, then replace the former with the latter.

Sj 22:44, 8 December 2006 (UTC)


 * +1! A very neat extension.
 * And just a note for the curious ones who want to follow the thread on the mailing list later:

(Wikitech-l) ImportFreeImages Extension; Travis Derouin; Fri Dec 8 20:57:43 UTC 2006 -- :Bdk: 00:59, 9 December 2006 (UTC)
 * Corrected mailing list link. Dammit, why couldn't they put redirects! 66.81.19.162 22:59, 9 February 2007 (UTC)

MediaWiki 1.12
In MediaWiki 1.12 UploadForm class has changed.

Quick fix to your extension:

In file "ImportFreeImages.php" change: $u = new UploadForm($wgRequest); $u->mUploadTempName = $name; $u->mUploadSize = $size; $u->mUploadDescription = $caption; $u->mRemoveTempFile = true; $u->mIgnoreWarning = true; $u->mOname = $filename; $t = Title::newFromText($filename, NS_IMAGE);

to: $u = new UploadForm($wgRequest); $u->mTempPath = $name; $u->mFileSize = $size; $u->mComment = $caption; $u->mSrcName = $filename; $u->mRemoveTempFile = true; $u->mIgnoreWarning = true; $t = Title::newFromText($filename, NS_IMAGE);

Marooned (at) wikia.com --213.156.101.77 12:54, 4 December 2007 (UTC)