Browse Source

Update readme

pull/1570/head
Ildar Khayrutdinov 5 years ago
parent
commit
729220647e
  1. 14
      src/ImageSharp/Formats/Tiff/README.md
  2. 5
      src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

14
src/ImageSharp/Formats/Tiff/README.md

@ -79,19 +79,19 @@
|CellWidth | | | | |CellWidth | | | |
|CellLength | | | | |CellLength | | | |
|FillOrder | | - | Ignore. In practice is very uncommon, and is not recommended. | |FillOrder | | - | Ignore. In practice is very uncommon, and is not recommended. |
|ImageDescription | | Y | | |ImageDescription | Y | Y | |
|Make | | Y | | |Make | Y | Y | |
|Model | | Y | | |Model | Y | Y | |
|StripOffsets | Y | Y | | |StripOffsets | Y | Y | |
|Orientation | | - | Ignore. Many readers ignore this tag. | |Orientation | | - | Ignore. Many readers ignore this tag. |
|SamplesPerPixel | Y | - | Currently ignored, as can be inferred from count of BitsPerSample | |SamplesPerPixel | Y | - | Currently ignored, as can be inferred from count of BitsPerSample |
|RowsPerStrip | | Y | | |RowsPerStrip | Y | Y | |
|StripByteCounts | Y | Y | | |StripByteCounts | Y | Y | |
|MinSampleValue | | | | |MinSampleValue | | | |
|MaxSampleValue | | | | |MaxSampleValue | | | |
|XResolution | Y | Y | | |XResolution | Y | Y | |
|YResolution | Y | Y | | |YResolution | Y | Y | |
|PlanarConfiguration | | Y | | |PlanarConfiguration | | Y | Encoding support only chunky. |
|FreeOffsets | | | | |FreeOffsets | | | |
|FreeByteCounts | | | | |FreeByteCounts | | | |
|GrayResponseUnit | | | | |GrayResponseUnit | | | |
@ -110,7 +110,7 @@
| |Encoder|Decoder|Comments | | |Encoder|Decoder|Comments |
|---------------------------|:-----:|:-----:|--------------------------| |---------------------------|:-----:|:-----:|--------------------------|
|NewSubfileType | | | | |NewSubfileType | | | |
|DocumentName | | | | |DocumentName | Y | Y | |
|PageName | | | | |PageName | | | |
|XPosition | | | | |XPosition | | | |
|YPosition | | | | |YPosition | | | |
@ -166,7 +166,7 @@
|YCbCrSubSampling | | | | |YCbCrSubSampling | | | |
|YCbCrPositioning | | | | |YCbCrPositioning | | | |
|ReferenceBlackWhite | | | | |ReferenceBlackWhite | | | |
|StripRowCounts | | - | | |StripRowCounts | - | - | See RFC 2301 (File Format for Internet Fax). |
|XMP | Y | Y | | |XMP | Y | Y | |
|ImageID | | | | |ImageID | | | |
|ImageLayer | | | | |ImageLayer | | | |

5
src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

@ -50,6 +50,11 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
} }
} }
if (entries.ExifProfile.GetValue(ExifTag.StripRowCounts) != null)
{
TiffThrowHelper.ThrowNotSupported("Variable-sized strips are not supported.");
}
options.PlanarConfiguration = entries.PlanarConfiguration; options.PlanarConfiguration = entries.PlanarConfiguration;
options.Predictor = entries.Predictor; options.Predictor = entries.Predictor;
options.PhotometricInterpretation = entries.PhotometricInterpretation; options.PhotometricInterpretation = entries.PhotometricInterpretation;

Loading…
Cancel
Save