# \#tiff

**URL:** https://forum.opencv.org/tag/tiff/384.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [How to save Mat as a 1-bit depth TIF file](https://forum.opencv.org/t/how-to-save-mat-as-a-1-bit-depth-tif-file/24105)

<div class="topic-metadata">

**Author:** [@cxnet](https://forum.opencv.org/u/cxnet)\
**Replies:** 1\
**Last updated:** [October 8, 2025, 9:11am UTC](https://forum.opencv.org/t/how-to-save-mat-as-a-1-bit-depth-tif-file/24105 "2025-10-08T09:11:23Z")

</div>

The file I saved with imwrite(“test.tif”,dst) is 8 bits, but I want to save Mat as a 1-bit depth TIF file. How should I do it? As shown in the following figure:

---

## [Possible to save 1 bpp TIFF image?](https://forum.opencv.org/t/possible-to-save-1-bpp-tiff-image/20895)

<div class="topic-metadata">

**Author:** [@sofakng](https://forum.opencv.org/u/sofakng)\
**Replies:** 4\
**Last updated:** [April 26, 2025, 6:49pm UTC](https://forum.opencv.org/t/possible-to-save-1-bpp-tiff-image/20895 "2025-04-26T18:49:33Z")

</div>

Is it possible to save a 1 bpp TIFF image with OpenCV? I’m trying to load a grayscale image (8 bpp), binarize (threshold) the image and then save a 1 bpp TIFF using CCIT (Group 4) compression. It looks like grfmt\_tiff.…

---

## [Reading tiff file](https://forum.opencv.org/t/reading-tiff-file/13906)

<div class="topic-metadata">

**Author:** [@fifilous](https://forum.opencv.org/u/fifilous)\
**Replies:** 11\
**Last updated:** [September 12, 2023, 7:14pm UTC](https://forum.opencv.org/t/reading-tiff-file/13906 "2023-09-12T19:14:54Z")

</div>

Hi, I need help with importing tiff file, but it is not an ordinary tiff file, instead of integers stored in the pixels there are double values stored there. The double values represent distance between the object and th…
