Skip to content

HDR Support #2947

@Gatts011

Description

@Gatts011

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions