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:
committed by
Jesse Yurkovich
parent
406a2fde91
commit
f79425fe82
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user