Manual:refreshImageMetadata.php

From Linux Web Expert

Revision as of 04:52, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.18
<translate> MediaWiki version:</translate>

詳細

refreshImageMetadata.phpファイルは、画像のメタデータ フィールドをリフレッシュするメンテナンススクリプトです。 It processes 200 items in a batch.

オプション/引数

オプション 説明 必須かどうか
--force Reload metadata from file even if the metadata looks ok. <translate> Optional</translate>
--broken-only Only fix really broken records, leave old but still compatible records alone. <translate> Optional</translate>
--convert-to-json Fix records with an out of date serialization format. <translate> Optional</translate>
--split Enable splitting out large metadata items to the text table. Implies --convert-to-json. <translate> Optional</translate>
--verbose Output extra information about each upgraded/non-upgraded file. <translate> Optional</translate>
--start Name 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. <translate> Optional</translate>
--end Name of file to end with. <translate> Optional</translate>
--mediatype Only refresh files with this media type, e.g. BITMAP, UNKNOWN etc. <translate> Optional</translate>
--mime Only refresh files with this MIME type. Can accept wild-card 'image/*'. Potentially inefficient unless mediatype is also specified <translate> Optional</translate>
--metadata-contains (Inefficient!) Only refresh files where the img_metadata field contains this string. Can be used if its known a specific property was being extracted incorrectly <translate> Optional</translate>
--sleep Time to sleep between each batch (in seconds). Default: 0 <translate> Optional</translate>
--oldimage Run and refresh on oldimage table. <translate> Optional</translate>

使用法

php maintenance/refreshImageMetadata.php [ --force| --broken-only| --convert-to-json| --split| --verbose| --start| --end| --mediatype| --mime| --metadata-contains| --sleep| --oldimage ]


Terminal

関連項目