Add generic device space transforms import / export / transform

Aperta
#5,303 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start by reading the existing icc_import, icc_export, and icc_transform operations and how thumbnail handles sRGB, ICC, UHDR, and CICP device spaces. Work out how the proposed generic import and export APIs should cover conversions to and from scRGB, XYZ, or LAB, including the requested icc_export scRGB PCS support and possible scRGB2UHDR operation. Done means these paths are implemented and can convert between the supported device spaces.

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

Descrizione

enhancement

thumbnail is becoming ridiculously complicated. We now support four device spaces (sRGB, ICC, UHDR, CICP) and conversions between them are not straightforward. I wonder if any downstream projects will get this right.

We have icc_import, icc_export, and icc_transform. Perhaps we should add generic import, export, and transform operations to move images between any pair of device spaces? They'd make thumbnail much simpler at least.

API:

// any device space image to device-independent space (scRGB, XYZ or LAB)
int vips_import(VipsImage *in, VipsImage **out, ...)
    optional: pcs, intent, black-point-compensation, embedded

// from device-independent space to device space
int vips_export(VipsImage *in, VipsImage **out, VipsDeviceSpace target_space, ...)
    optional: colour-primaries, transfer-characteristics, matrix-coefficients, depth,
        pcs, intent, black-point-compensation, output-profile

And make icc_export allow scRGB as a PCS (gets transformed to XYZ).

I suppose we might need scRGB2UHDR too.

Lingua principale
C
Stelle
11.9k
Fork
811
Merge medio
1g 6h
PR unite (30g)
44

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 libvips/libvips

Tutte le issue di libvips/libvips

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.