Manual:ImportImages.php

importImages.php is a script which uploads images to mediawiki from your computer.

Example
php maintenance/importImages.php /path/to/images/directory png jpg gif bmp PNG JPG GIF BMP Directory recursion is not supported.

What a successful import of one image, Lance2.jpg looks like in windows:

Arguments
A list of available commands can be found inside ImportImages.php beginning on line 290: Imports images and other media files into the wiki

USAGE: php importImages.php [options]



Options: --extensions=    Comma-separated list of allowable extensions, defaults to $wgFileExtensions --overwrite            Overwrite existing images with the same name (default is to skip them) --limit=          Limit the number of images to process. Ignored or skipped images are not counted. --from=          Ignore all files until the one with the given name. Useful for resuming aborted imports. should be the file's canonical database form. --skip-dupes           Skip images that were already uploaded under a different name (check SHA1) --sleep=          Sleep between files. Useful mostly for debugging. --user=      Set username of uploader, default 'Maintenance script' --check-userblock      Check if the user got blocked during import. --comment=       Set upload summary comment, default 'Importing image file'. --comment-file=  Set upload summary comment to the content of. --comment-ext=    Causes the comment for each file to be loaded from a file with the same name but the extension. If a global comment is also given, it is appended. --license= by adding # in front of the line.