stdImage: add WebP decoding support

Aperta
#178 0 commenti 0 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
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
visualbasic
Ambito
desktop-dev

Direzione di ricerca

Read the stdImage module (e.g., src/stdImage.cls) to locate CreateFromFile and CreateFromBinary and their Data URL/URL callers. Review the linked Microsoft WIC/GDI+ docs to evaluate a WebP decoder. Implement decoding with fallback errors, then add the listed tests, update changelog.md and regenerate docs.json. Done means WebP input works consistently with docs updated.

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

Descrizione

Split out from #98 so binary/Data URL export and clipboard improvements can proceed independently.

Current behaviour: stdImage.CreateFromFile rejects .webp files. GDI+ has no built-in WebP decoder, so this needs a separate decoding approach.

Scope:

  • Choose a decoder: evaluate WIC with an available WebP codec versus an optional external decoder. Document platform, installation, deployment, and licensing requirements.
  • Keep existing image formats usable by importing stdImage alone, without mandatory new dependencies.
  • Support WebP input consistently through CreateFromFile and CreateFromBinary, and through their Data URL and URL callers.
  • Define transparency/background and animated WebP behaviour.
  • Provide clear errors for missing codecs and malformed/unsupported data, with native resource cleanup.
  • Add lossy/lossless, transparency, invalid-input, missing-codec, existing-format, and 32/64-bit Office checks where available.
  • Update structured documentation, examples, changelog.md, and regenerate/compare docs.json.

WebP encoding/export is outside the initial scope. Preserve existing stdImgFormat numeric values if extended.

References:
https://learn.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-using-image-encoders-and-decoders-use
https://learn.microsoft.com/en-us/windows/win32/wic/-wic-about-windows-imaging-codec

Lingua principale
VBA
Stelle
412
Fork
70
Merge medio
17h 22m
PR unite (30g)
22

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 sancarn/stdVBA

Tutte le issue di sancarn/stdVBA

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.