Manual:RefreshImageMetadata.php/ja

MediaWiki バージョン:
1.18
Category:MediaWiki code/ja#RefreshImageMetadata.php

詳細

refreshImageMetadata.phpファイルは、画像のメタデータ フィールドをリフレッシュするメンテナンススクリプトです。 バッチ1つにつき200件処理されます。

オプション/引数

オプション説明必須かどうか
--forceReload metadata from file even if the metadata looks ok.省略可能
--broken-onlyOnly fix really broken records, leave old but still compatible records alone.省略可能
--convert-to-jsonFix records with an out of date serialization format.省略可能
--splitEnable splitting out large metadata items to the text table. Implies --convert-to-json.省略可能
--verboseOutput extra information about each upgraded/non-upgraded file.省略可能
--startName of file to start with. Spaces must be replaced by underscores, since the parameter will be used to match the file name as stored in the database.省略可能
--endName of file to end with.省略可能
--mediatypeOnly refresh files with this media type, e.g. BITMAP, UNKNOWN etc.省略可能
--mimeOnly refresh files with this MIME type. Can accept wild-card 'image/*'. Potentially inefficient unless mediatype is also specified省略可能
--metadata-contains(非効率的です!) Only refresh files where the img_metadata field contains this string. Can be used if its known a specific property was being extracted incorrectly省略可能
--sleepTime to sleep between each batch (in seconds). Default: 0省略可能
--oldimageRun and refresh on oldimage table.省略可能

使用法

php maintenance/run.php refreshImageMetadata [ --force| --broken-only| --convert-to-json| --split| --verbose| --start| --end| --mediatype| --mime| --metadata-contains| --sleep| --oldimage ]
Terminal
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目

Category:Maintenance scripts/ja Category:File maintenance scripts/ja
Category:File maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja