-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
What are you trying to achieve?
Convert HDRI to anything else, libvips supports hdr format
Have you searched for similar feature requests?
Yes
What would you expect the API to look like?
if (descriptor->rawChannels > 3) { //channels are more than 3 - hdr has 10 ish?
image.get_image()->Type = VIPS_INTERPRETATION_HDR;
}
... flatten channels to RGB(3) something something..
fs.readFile("test.hdr", function (err, data) {
if (err) throw err;
// console.log(data);
sharp(data)
.toFile('output.jpeg', (err, info) => {
if (err) {
console.log(err);
}
console.log(info)
});
});
//[Error: Input buffer contains unsupported image format] :(
What alternatives have you considered?
Using libvibs directly?
Is there a sample image that helps explain?
any hdri