I'm running this script to find the landscape size of tifs in a directory.
identify -format '%[fx:w/200] %i\n' ./*.tif | awk '$1 > 15 {sub(/^[^ ] * [^ ] * /, ""); print $2}'| xargs -I "{}" mv "{}" ./landscapes
I ran it on one directory of tifs - no problems. Now I've moved on to another batch/new directory and I'm getting this:
identify: ASCII value for tag "Software" does not end in null byte. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/881.
It does create a file named landscapes, but not a directory.
I've read that these are just warnings, but it doesn't move the .tifs to a new directory.
One of the ways I've been getting around this is to convert to .jpg first and with that script it does give me the warning but does create the files.
I would really like to know which one(s) are throwing the error. I don't like that it worked perfectly for one directory but not the other without figuring out why.
Also I new to this. These .tifs are about 20 years old.
ASCII value for tag "Software" does not end in null byte
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ASCII value for tag "Software" does not end in null byte
try adding -quiet after identify. That should suppress the warnings that come with unknown tiff tags.
Re: ASCII value for tag "Software" does not end in null byte
Thank you. That solved my problem!