Skip to content

Commit

Permalink
turned fatal whitebalance=4 warning into a remediable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarin committed Aug 2, 2024
1 parent 21823ff commit ba75cdc
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 @@ -247,6 +247,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 ba75cdc

Please sign in to comment.