Manual:rebuildImages.php
Appearance
| MediaWiki version: | ≥ 1.4 |
| MediaWiki file: rebuildImages.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.45.1 • 1.44. • 1.39.16 |
| Classes: | ImageBuilder |
Details
[edit]rebuildImages.php file is a maintenance script to update metadata records for images that were manually uploaded to the wiki, for example via SFTP.
Options
[edit]| Option | Description | Required |
|---|---|---|
| --missing | Only updates metadata records for images if no records currently exist in the database. | Optional |
| --dry-run | Only reports results and does not update the database with metadata records. | Optional |
Usage
[edit]php maintenance/run.php rebuildImages [ --missing| --dry-run ]
Terminal
$ php maintenance/run.php rebuildImages Processing image... Finished image... 2 of 3 rows updated Processing oldimage... Finished oldimage... 0 of 0 rows updated
In MediaWiki version 1.39.16 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.