Index: branches/uploadwizard/extensions/UploadWizard/test/php/scripts/generateRandomImages.php |
— | — | @@ -1,10 +1,18 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -/* Because MediaWiki tests the uniqueness of media upload content, and filenames, it is sometimes useful to generate |
5 | | - files that are guaranteed (or at least very likely) to be unique in both those ways. |
6 | | - This generates a number of filenames with random names and random content (colored circles) */ |
| 4 | +/* |
| 5 | + * generateRandomImages -- does what it says on the tin. |
| 6 | + * |
| 7 | + * Because MediaWiki tests the uniqueness of media upload content, and filenames, it is sometimes useful to generate |
| 8 | + * files that are guaranteed (or at least very likely) to be unique in both those ways. |
| 9 | + * This generates a number of filenames with random names and random content (colored circles) |
| 10 | + * |
| 11 | + * Requires Imagick, the ImageMagick library for PHP. |
| 12 | + * |
| 13 | + * @file |
| 14 | + * @author Neil Kandalgaonkar <neilk@wikimedia.org> |
| 15 | + */ |
7 | 16 | |
8 | | - |
9 | 17 | $defaults = array( |
10 | 18 | 'dict' => "/usr/share/dict/words", |
11 | 19 | 'number' => 10, |