lovell/sharp

Feature request: expose libvips maplut operation to map pixel values (for e.g. colour grading)

Open

#1441 aperta il 30 ott 2018

Vedi su GitHub
 (15 commenti) (3 reazioni) (0 assegnatari)JavaScript (1389 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (31.994 star)
Metriche merge PR
 (Merge medio 4g 19h) (18 PR mergiate in 30 g)

Descrizione

I'm interested in being able to apply 3D LUTs to images on the fly, eg. .cube files. I think vips_maplut() is the right function under the hood for this, perhaps I'll need to figure out how to generate LUT images from those files first though.

I've been trying to use some node libraries to do this, extracting the pixels as an ndarray, applying the LUT, then saving the modified pixels back to an image buffer but it's super slow and error prone (truncated image data etc).

If it's not something that makes sense for sharp no worries, hopefully I can find info on transforming an image as a readableStream assuming that's doable :)

Guida contributor