Browse Source

- updated README

pull/2/head
Andreas Romeyke 5 years ago
parent
commit
de6e2c96b3
1 changed files with 44 additions and 29 deletions
  1. +44
    -29
      README.1st_checkit

+ 44
- 29
README.1st_checkit View File

@ -39,20 +39,20 @@ HINTS
== Compile ==
$> make
see file 'README.compile' for details, in short:
If you want to compile the programm with an older linux distribution, pE,
Debian Wheezy, use this line instead:
$> SANITIZE="-DOLDTIFF" make
== Run ==
Use the builtin help via './checkit_tiff -h'
== Run ==
Here an example output using
./checkit_tiff ../examples/invalid_date.tiff example_configs/cit_tiff6_baseline_SLUB.cfg
'./checkit_tiff' version: 0.223_g74e9931, licensed under conditions of libtiff (see http://libtiff.maptools.org/misc.html)
tiff file=../examples/invalid_date.tiff
$ ./checkit_tiff tiffs_should_fail/invalid_date.tiff example_configs/cit_tiff6_baseline_SLUB.cfg
'./checkit_tiff' version: master
revision: 68
licensed under conditions of libtiff (see http://libtiff.maptools.org/misc.html)
cfg_file=example_configs/cit_tiff6_baseline_SLUB.cfg
tiff file=tiffs_should_fail/invalid_date.tiff
TIFFFetchNormalTag: Warning, Incorrect value for "Photoshop"; tag ignored.
check if all IFDs are word aligned
check if only one IFD exists
@ -60,32 +60,47 @@ check if tags are in ascending order
check if all offsets are used once only
check if all offsets are word aligned
check if tag 306 (DateTime) is correct
tag 306 (DateTime) value of datetime should be "yyyy:MM:DD hh:mm:ss", but was "04.03.2010 09:59:17"
tag 306 (DateTime) should have value should be "yyyy:MM:DD hh:mm:ss", but has value (values or count) of datetime was "04.03.2010 09:59:17"
check if tag 256 (ImageWidth) has value in range 1 - 4294967295
check if tag 256 (ImageWidth) has valid type
check if tag 257 (ImageLength) has value in range 1 - 4294967295
check if tag 258 (BitsPerSample) has these 3-values, 8, 8, 8
check if tag 259 (Compression) has value 1
check if tag 262 (PhotometricInterpretation) has value in range 0 - 2
check if tag 257 (ImageLength) has valid type
check if tag 258 (BitsPerSample) has these 3-values: 8, 8, 8
check if tag 258 (BitsPerSample) has valid type
check if tag 259 (Compression) has value
check if tag 259 (Compression) has valid type
check if tag 262 (Photometric) has value in range 0 - 2
check if tag 262 (Photometric) has valid type
check if tag 273 (StripOffsets) exists
check if tag 273 (StripOffsets) has valid type
check if tag 273 (StripOffsets) has valid asciivalue
check if tag 277 (SamplesPerPixel) has value 3
check if tag 277 (SamplesPerPixel) has value
check if tag 277 (SamplesPerPixel) has valid type
check if tag 278 (RowsPerStrip) has value in range 1 - 4294967295
check if tag 278 (RowsPerStrip) has valid type
check if tag 279 (StripByteCounts) has value in range 1 - 4294967295
check if tag 279 (StripByteCounts) has valid type
check if tag 282 (XResolution) has value in range 300 - 1200
check if tag 282 (XResolution) has valid type
check if tag 283 (YResolution) has value in range 300 - 1200
check if tag 296 (ResolutionUnit) has value 2
check if tag 254 (SubfileType) has value 0
check if tag 266 (FillOrder) has value 1
check if tag 274 (Orientation) has value 1
check if tag 284 (PlanarConfiguration) has value 1
check if tag 305 (Software) has value matching regex '^[[:print:]]*$'
check if tag 306 (DateTime) has value matching regex '^[12][901][0-9][0-9]:[01][0-9]:[0-3][0-9] [012][0-9]:[0-5][0-9]:[0-6][0-9]$'
tag 306 with value '04.03.2010 09:59:17' no match to given regex '^[12][901][0-9][0-9]:[01][0-9]:[0-3][0-9] [012][0-9]:[0-5][0-9]:[0-6][0-9]$'
check if tag 283 (YResolution) has valid type
check if tag 296 (ResolutionUnit) has value
check if tag 296 (ResolutionUnit) has valid type
check if tag 254 (SubFileType) has value
check if tag 254 (SubFileType) has valid type
check if tag 266 (FillOrder) has value
check if tag 266 (FillOrder) has valid type
check if tag 269 (DocumentName) has value matching regex '^[[:print:]]*$'
check if tag 274 (Orientation) has value
check if tag 274 (Orientation) has valid type
check if tag 284 (PlanarConfig) has value
check if tag 284 (PlanarConfig) has valid type
check if tag 297 (PageNumber) has these 2-values: 0, 1
check if tag 297 (PageNumber) has valid type
check if tag 305 (Software) has value matching regex '^[[:print:]]*$'
check if tag 306 (DateTime) has value matching regex '^[12][901][0-9][0-9]:[01][0-9]:[0-3][0-9] [012][0-9]
tag 306 (DateTime) should have value ^[12][901][0-9][0-9]:[01][0-9]:[0-3][0-9] [012][0-9]:[0-5][0-9]:[0-6][0-9]$, but has value (values or count) 04.03.2010 09:59:17
check if forbidden tags are still existing
found tag 269 (DocumentName) which is not whitelisted
found tag 297 (PageNumber) which is not whitelisted
found tag 315 (Artist) which is not whitelisted
found tag 34377 (Photoshop) which is not whitelisted
found 6 errors
$>
tag 315 (Artist) is_found, but is not whitelisted (or rule has no matched dependency)
tag 34377 (Photoshop Image Ressources) is_found, but is not whitelisted (or rule has no matched dependency)
found 4 errors

Loading…
Cancel
Save