Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#254 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
wordpress
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Gherkin
Stelle
47
Fork
42
Merge medio
2h 30m
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wp-cli/media-command

Tutte le issue di wp-cli/media-command

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.