Skip to content

Commit

Permalink
Merge pull request #147 from hathitrust/DEV-1253-whitebalance
Browse files Browse the repository at this point in the history
Dev 1253 whitebalance=4 remediable
  • Loading branch information
mwarin authored Aug 19, 2024
2 parents 4216d9c + ba75cdc commit 3d0aa7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/validate_volume.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# bash validate_volume.sh /path/to/item.zip

fullpath=$(realpath $1)
objid=$(basename $fullpath .zip)
test_dir=/tmp/prep/toingest/test/

# Set up working dir and copy input file there
rm --verbose -rf "$test_dir"
mkdir --verbose -p "$test_dir"
cp --verbose "$fullpath" "$test_dir"

perl /usr/local/feed/bin/validate_volume.pl -1 simple test $objid --clean
1 change: 1 addition & 0 deletions lib/HTFeed/Stage/ImageRemediate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ sub _remediate_tiff {
my @imagemagick_remediable_errs = (
'PhotometricInterpretation not defined',
'ColorSpace value out of range: 2',
'WhiteBalance value out of range: 4',
'WhiteBalance value out of range: 5',
# wrong data type for tag - will get automatically stripped
'Type mismatch for tag',
Expand Down

0 comments on commit 3d0aa7c

Please sign in to comment.