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?