Manual:rebuildImages.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.4
<translate> MediaWiki version:</translate> |
MediaWiki file: rebuildImages.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | ImageBuilder |
Details
rebuildImages.php file is a maintenance script to update metadata records for images that were manually uploaded to the wiki, for example via FTP.
Options
Option | Description | Required |
---|---|---|
--missing | Only updates metadata records for images if no records currently exist in the database. | <translate> Optional</translate> |
--dry-run | Only reports results and does not update the database with metadata records. | <translate> Optional</translate> |
Usage
php maintenance/rebuildImages.php [ --missing| --dry-run ]
Terminal
$ php maintenance/rebuildImages.php Processing image... Finished image... 2 of 3 rows updated Processing oldimage... Finished oldimage... 0 of 0 rows updated