diff --git a/bin/validate_volume.sh b/bin/validate_volume.sh new file mode 100644 index 00000000..f2d304a0 --- /dev/null +++ b/bin/validate_volume.sh @@ -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 diff --git a/lib/HTFeed/Stage/ImageRemediate.pm b/lib/HTFeed/Stage/ImageRemediate.pm index 53e38eb1..e7576961 100644 --- a/lib/HTFeed/Stage/ImageRemediate.pm +++ b/lib/HTFeed/Stage/ImageRemediate.pm @@ -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',