From 62fc16224e72f558243e6207b22381afe9262ad2 Mon Sep 17 00:00:00 2001 From: Ildar Khayrutdinov Date: Tue, 4 Jan 2022 15:10:03 +0300 Subject: [PATCH] HTML -> MD --- .../Input/Tiff/BigTiff/BigTIFFSamples.html | 239 ------------------ .../Input/Tiff/BigTiff/BigTIFFSamples.md | 220 ++++++++++++++++ tests/Images/Input/Tiff/BigTiff/readme.md | 6 +- 3 files changed, 224 insertions(+), 241 deletions(-) delete mode 100644 tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.html create mode 100644 tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.md diff --git a/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.html b/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.html deleted file mode 100644 index c674e57b58..0000000000 --- a/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - -

- These images were created by AWare Systems. -

-

Index

-

- Classic.tif
- BigTIFF.tif
- BigTIFFMotorola.tif
- BigTIFFLong.tif
- BigTIFFLong8.tif
- BigTIFFMotorolaLongStrips.tif
- BigTIFFLong8Tiles.tif
- BigTIFFSubIFD4.tif
- BigTIFFSubIFD8.tif
-

-

Classic.tif

-

- Classic.tif is a basic Classic TIFF file. All files in this package have the same actual image content, - so this TIFF file serves as a reference. -

-

- Format: Classic TIFF
- Byte Order: Intel
- Ifd Offset: 12302
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 8
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-

-

BigTIFF.tif

-

- BigTIFF.tif ressembles Classic.tif as close as possible. Except that it's a BigTIFF, that is... -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 12304
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-

-

BigTIFFMotorola.tif

-

- BigTIFFMotorola.tif reverses the byte order. -

-

- Format: BigTIFF
- Byte Order: Motorola
- Ifd Offset: 12304
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-

-

BigTIFFLong.tif

-

- All previous TIFFs specify DataType Short for StripOffsets and StripByteCounts tags. This BigTIFF instead specifies DataType Long, for these tags. -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 12304
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Long): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Long): 12288
-

-

BigTIFFLong8.tif

-

- This next one specifies DataType Long8, for StripOffsets and StripByteCounts tags. -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 12304
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Long8): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Long8): 12288
-

-

BigTIFFMotorolaLongStrips.tif

-

- This BigTIFF has Motorola byte order, plus, it's divided over two strips. StripOffsets and StripByteCounts tags have DataType Long, so their actual value fits inside the IFD. -

-

- Format: BigTIFF
- Byte Order: Motorola
- Ifd Offset: 12304
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (2 Long): 16, 6160
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 32
-     StripByteCounts (2 Long): 6144, 6144
-

-

BigTIFFLong8Tiles.tif

-

- BigTIFFLong8Tiles.tif is a tiled BigTIFF. TileOffsets and TileByteCounts tags specify DataType Long8. -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 12368
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     SamplesPerPixel (1 Short): 3
-     TileWidth (1 Short): 32
-     TileLength (1 Short): 32
-     TileOffsets (4 Long8): 16, 3088, 6160, 9232
-     TileByteCounts (4 Long8): 3072, 3072, 3072, 3072
-

-

BigTIFFSubIFD4.tif

-

- This BigTIFF contains two pages, the second page showing almost the same image content as the first, except that the black square is white, and text color is black. - Both pages point to a downsample SubIFD, using SubIFDs DataType TIFF_IFD. -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 15572
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 3284
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-     SubIFDs (1 IFD): 3088
- SubIfd Offset: 3088
-     NewSubFileType (1 Long): 1
-     ImageWidth (1 Short): 32
-     ImageLength (1 Short): 32
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 32
-     StripByteCounts (1 Short): 3072
- Ifd Offset: 31324
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 19036
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-     SubIFDs (1 IFD): 18840
- SubIfd Offset: 18840
-     NewSubFileType (1 Long): 1
-     ImageWidth (1 Short): 32
-     ImageLength (1 Short): 32
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 15768
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 32
-     StripByteCounts (1 Short): 3072
-

-

BigTIFFSubIFD8.tif

-

- BigTIFFSubIFD4.tif is very much the same as BigTIFFSubIFD4.tif, except that the new DataType TIFF_IFD8 is used for the SubIFDs tag. -

-

- Format: BigTIFF
- Byte Order: Intel
- Ifd Offset: 15572
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 3284
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-     SubIFDs (1 IFD8): 3088
- SubIfd Offset: 3088
-     NewSubFileType (1 Long): 1
-     ImageWidth (1 Short): 32
-     ImageLength (1 Short): 32
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 16
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 32
-     StripByteCounts (1 Short): 3072
- Ifd Offset: 31324
-     ImageWidth (1 Short): 64
-     ImageLength (1 Short): 64
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 19036
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 64
-     StripByteCounts (1 Short): 12288
-     SubIFDs (1 IFD8): 18840
- SubIfd Offset: 18840
-     NewSubFileType (1 Long): 1
-     ImageWidth (1 Short): 32
-     ImageLength (1 Short): 32
-     BitsPerSample (3 Short): 8, 8, 8
-     PhotometricInterpretation (1 Short): RGB
-     StripOffsets (1 Short): 15768
-     SamplesPerPixel (1 Short): 3
-     RowsPerStrip (1 Short): 32
-     StripByteCounts (1 Short): 3072
-

- - diff --git a/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.md b/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.md new file mode 100644 index 0000000000..c3047009eb --- /dev/null +++ b/tests/Images/Input/Tiff/BigTiff/BigTIFFSamples.md @@ -0,0 +1,220 @@ +These images were created by [AWare Systems](http://www.awaresystems.be/). + +# Index + +[Classic.tif](#classic) +[BigTIFF.tif](#bigtiff) +[BigTIFFMotorola.tif](#bigtiffmotorola) +[BigTIFFLong.tif](#bigtifflong) +[BigTIFFLong8.tif](#bigtifflong8) +[BigTIFFMotorolaLongStrips.tif](#bigtiffmotorolalongstrips) +[BigTIFFLong8Tiles.tif](#bigtifflong8tiles) +[BigTIFFSubIFD4.tif](#bigtiffsubifd4) +[BigTIFFSubIFD8.tif](#bigtiffsubifd8) + +# Classic.tif + +Classic.tif is a basic Classic TIFF file. All files in this package have the same actual image content, so this TIFF file serves as a reference. + +Format: Classic TIFF +Byte Order: Intel +Ifd Offset: 12302 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 8 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 + +# BigTIFF.tif + +BigTIFF.tif ressembles Classic.tif as close as possible. Except that it's a BigTIFF, that is... + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 12304 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 + +# BigTIFFMotorola.tif + +BigTIFFMotorola.tif reverses the byte order. + +Format: BigTIFF +Byte Order: Motorola +Ifd Offset: 12304 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 + +# BigTIFFLong.tif + +All previous TIFFs specify DataType Short for StripOffsets and StripByteCounts tags. This BigTIFF instead specifies DataType Long, for these tags. + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 12304 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Long): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Long): 12288 + +# BigTIFFLong8.tif + +This next one specifies DataType Long8, for StripOffsets and StripByteCounts tags. + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 12304 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Long8): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Long8): 12288 + +# BigTIFFMotorolaLongStrips.tif + +This BigTIFF has Motorola byte order, plus, it's divided over two strips. StripOffsets and StripByteCounts tags have DataType Long, so their actual value fits inside the IFD. + +Format: BigTIFF +Byte Order: Motorola +Ifd Offset: 12304 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (2 Long): 16, 6160 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 32 +    StripByteCounts (2 Long): 6144, 6144 + +# BigTIFFLong8Tiles.tif + +BigTIFFLong8Tiles.tif is a tiled BigTIFF. TileOffsets and TileByteCounts tags specify DataType Long8. + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 12368 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    SamplesPerPixel (1 Short): 3 +    TileWidth (1 Short): 32 +    TileLength (1 Short): 32 +    TileOffsets (4 Long8): 16, 3088, 6160, 9232 +    TileByteCounts (4 Long8): 3072, 3072, 3072, 3072 + +# BigTIFFSubIFD4.tif + +This BigTIFF contains two pages, the second page showing almost the same image content as the first, except that the black square is white, and text color is black. Both pages point to a downsample SubIFD, using SubIFDs DataType TIFF_IFD. + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 15572 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 3284 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 +    SubIFDs (1 IFD): 3088 +SubIfd Offset: 3088 +    NewSubFileType (1 Long): 1 +    ImageWidth (1 Short): 32 +    ImageLength (1 Short): 32 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 32 +    StripByteCounts (1 Short): 3072 +Ifd Offset: 31324 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 19036 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 +    SubIFDs (1 IFD): 18840 +SubIfd Offset: 18840 +    NewSubFileType (1 Long): 1 +    ImageWidth (1 Short): 32 +    ImageLength (1 Short): 32 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 15768 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 32 +    StripByteCounts (1 Short): 3072 + +# BigTIFFSubIFD8.tif + +BigTIFFSubIFD4.tif is very much the same as BigTIFFSubIFD4.tif, except that the new DataType TIFF_IFD8 is used for the SubIFDs tag. + +Format: BigTIFF +Byte Order: Intel +Ifd Offset: 15572 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 3284 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 +    SubIFDs (1 IFD8): 3088 +SubIfd Offset: 3088 +    NewSubFileType (1 Long): 1 +    ImageWidth (1 Short): 32 +    ImageLength (1 Short): 32 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 16 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 32 +    StripByteCounts (1 Short): 3072 +Ifd Offset: 31324 +    ImageWidth (1 Short): 64 +    ImageLength (1 Short): 64 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 19036 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 64 +    StripByteCounts (1 Short): 12288 +    SubIFDs (1 IFD8): 18840 +SubIfd Offset: 18840 +    NewSubFileType (1 Long): 1 +    ImageWidth (1 Short): 32 +    ImageLength (1 Short): 32 +    BitsPerSample (3 Short): 8, 8, 8 +    PhotometricInterpretation (1 Short): RGB +    StripOffsets (1 Short): 15768 +    SamplesPerPixel (1 Short): 3 +    RowsPerStrip (1 Short): 32 +    StripByteCounts (1 Short): 3072 \ No newline at end of file diff --git a/tests/Images/Input/Tiff/BigTiff/readme.md b/tests/Images/Input/Tiff/BigTiff/readme.md index be5d28906a..80f6b595b4 100644 --- a/tests/Images/Input/Tiff/BigTiff/readme.md +++ b/tests/Images/Input/Tiff/BigTiff/readme.md @@ -1,3 +1,5 @@ -BigTIFF samples. +#### BigTIFF samples. -Downloaded from AWARE SYSTEMS: https://www.awaresystems.be/imaging/tiff/bigtiff.html \ No newline at end of file +For details: BigTIFFSamples.md + +Downloaded from https://www.awaresystems.be/imaging/tiff/bigtiff.html \ No newline at end of file