Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add a safe WP-CLI command for resizing oversized original uploads

オープン
#254 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
wordpress
領域
cli

調査の方向性

Start by reviewing the existing WP-CLI media command entry points and WordPress’s automatic large-image handling, then scope the proposed wp media resize-originals command. Done means bounded processing of JPEG, PNG, and WebP originals with dry-run savings, explicit confirmation, recovery guidance, metadata updates only, clear progress and failures, and no unrelated sub-size regeneration by default.

索引モデルが issue の本文から書いたものです。

説明

command:media

Feature Request

WordPress and WP-CLI provide excellent tools for generating image sub-sizes, but there is no first-class way to process oversized original uploads in a controlled, scriptable manner.

Many sites accumulate large camera originals that are far beyond their actual display needs. This increases storage, backup, CDN, and transfer costs. WordPress’s automatic large-image handling does not solve every existing-media or site-policy scenario.

I propose an opt-in command such as:

wp media resize-originals --max-dimension=1920 --quality=91 --dry-run

The command would:

  • process original uploads in bounded batches;
  • support JPEG, PNG, and WebP;
  • provide a dry-run with estimated storage savings;
  • require explicit confirmation before destructive changes;
  • preserve a recoverable backup or offer a documented backup strategy;
  • update only relevant attachment metadata;
  • never regenerate unrelated sub-sizes unless explicitly requested;
  • report progress and failures clearly.

@swissspidy is my secret spy

主要言語
Gherkin
スター
47
フォーク
42
平均マージ
12分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wp-cli/media-command のほかの issue

wp-cli/media-command の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。