Skip to content

HOWTO set Photometric Interpretation to min-is-white #3186

@geabenitez

Description

@geabenitez

I am using this piece of code
await sharp(./${file}.tif)
.toColourspace('b-w')
.tiff({ compression: 'ccittfax4', xres: size, yres: size, bitdepth: 1 })
.toFile(output_${dpi}.tif)

but I am getting Photometric Interpretation: min-is-black and I need it to be min-is-white

Any suggestion on how I can achieve the min-is-white?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions