Consider generating fallback JPEG/PNG when a WebP/AVIF is uploaded originally

Aperta
#2,215 2 commenti 4 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php, wordpress

Direzione di ricerca

Inizia tracciando la gestione esistente dei formati immagine moderni in wp_head e il comportamento di fallback dell’elemento PICTURE. Determina come un WebP o AVIF caricato originariamente potrebbe produrre fallback JPEG/PNG per entrambi gli utilizzi, quindi verifica il comportamento con i test pertinenti per immagini e markup.

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

Descrizione

[Plugin] Modern Image Formats [Type] Enhancement

Feature Description

This was raised by @webd-uk in a support forum topic: Open Graph protocol does not support webp.

I thought what was being requested was something that was already implemented (cf. https://github.com/WordPress/performance/issues/2028) where outputting modern image formats is skipped during wp_head for the sake of social providers that don't support them (e.g. Open Graph).

However, the issue is rather if you uploads a WebP or AVIF from the beginning (as WordPress now supports). In this case, the plugin won't need to do anything since a modern image format is the original format. In this case, there's no JPEG/PNG to fall back to render in wp_head.

Perhaps this plugin should support site owners who are already using WebP/AVIF images by generating the JPEG/PNG both for use in wp_head and also for PICTURE element fallbacks.

Lingua principale
PHP
Stelle
467
Fork
171
Merge medio
13h 21m
PR unite (30g)
32

Preparare l'ambiente

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 WordPress/performance

Tutte le issue di WordPress/performance

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.