Manual:cleanupImages.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

詳細

cleanupImages.php file is a maintenance script to clean up broken or unparseable upload filenames. The edits will be attributed to the user called Conversion script.

使用法

オプション/パラメーター 説明
--dry-run Perform a dry run

技術的な詳細

These notes are based on an inspection of cleanupImages.php from MediaWiki 1.19.

Problematic names

Image names containing the following elements are candidates for name replacement:

  • パーセント コード
  • HTML エンティティ
  • 廃止予定の Latin-1 文字
  • 正規化されていない Unicode

Replacement names

When encountering a problematic image name, the script will attempt to automatically derive a safe name. If the derived name comes up empty (perhaps there is nothing left after removal of unsafe characters) or the derived name matches the name of another image which already exists, the problematic image file will be skipped without name replacement.