Fix #116988: TIFF ignores compression type None

When saving an image as TIFF with compression type None, explicitly set
the OIIO ImageSpec attribute "compression" to "none" as well.

Pull Request: https://projects.blender.org/blender/blender/pulls/117005
This commit is contained in:
Thomas Wilshaw
2024-01-11 00:56:40 +01:00
committed by Jesse Yurkovich
parent 406a2fde91
commit f79425fe82

View File

@@ -69,6 +69,9 @@ bool imb_save_tiff(ImBuf *ibuf, const char *filepath, int flags)
else if (ibuf->foptions.flag & TIF_COMPRESS_PACKBITS) {
file_spec.attribute("compression", "packbits");
}
else if (ibuf->foptions.flag & TIF_COMPRESS_NONE) {
file_spec.attribute("compression", "none");
}
return imb_oiio_write(ctx, filepath, file_spec);
}