Mercurial > octave-libtiff
diff libinterp/dldfcn/__tiff__.cc @ 31147:7af78a63d3c3
Tiff.m: added test for writing and reading tiled images.
author | magedrifaat <magedrifaat@gmail.com> |
---|---|
date | Sun, 31 Jul 2022 20:41:02 +0200 |
parents | 50402b8dfb4a |
children | 4bc9a1938f9a |
line wrap: on
line diff
--- a/libinterp/dldfcn/__tiff__.cc Sun Jul 31 18:34:59 2022 +0200 +++ b/libinterp/dldfcn/__tiff__.cc Sun Jul 31 20:41:02 2022 +0200 @@ -52,6 +52,8 @@ &bits_per_sample)) error ("Failed to read the BitsPerSample tag"); + // TODO(maged): this doesn't really work for writing as LibTIFF will + // refuse to write unless the tag is set if (! TIFFGetField (tif, TIFFTAG_PLANARCONFIG, &planar_configuration)) // LibTIFF has a bug where it incorrectly returns 0 as a default