This commit is contained in:
parent
6e0fb26f36
commit
9677c18b57
|
@ -40,7 +40,6 @@ fn write_mask_image(
|
||||||
assert!(height <= MAX_IMAGE_DIM);
|
assert!(height <= MAX_IMAGE_DIM);
|
||||||
let mut header = Header::from_dimensions(width as i32, height as i32);
|
let mut header = Header::from_dimensions(width as i32, height as i32);
|
||||||
|
|
||||||
// TODO this might just make the file bigger and not fix anything
|
|
||||||
header.set_compression(Compression::No);
|
header.set_compression(Compression::No);
|
||||||
|
|
||||||
header.channels_mut().insert("R", &non_color_channel());
|
header.channels_mut().insert("R", &non_color_channel());
|
||||||
|
@ -73,7 +72,6 @@ fn write_point_image(
|
||||||
) -> Result<(), Box<dyn Error>> {
|
) -> Result<(), Box<dyn Error>> {
|
||||||
let mut header = Header::from_dimensions(width as i32, height as i32);
|
let mut header = Header::from_dimensions(width as i32, height as i32);
|
||||||
|
|
||||||
// TODO this might just make the file bigger and not fix anything
|
|
||||||
header.set_compression(Compression::No);
|
header.set_compression(Compression::No);
|
||||||
|
|
||||||
header.channels_mut().insert("R", &non_color_channel());
|
header.channels_mut().insert("R", &non_color_channel());
|
||||||
|
|
Loading…
Reference in New Issue