Page 1 of 1

ASCII value for tag "Software" does not end in null byte

Posted: 2017-07-31T16:05:37-07:00
by rschooff
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.

Re: ASCII value for tag "Software" does not end in null byte

Posted: 2017-07-31T17:34:28-07:00
by fmw42
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

Posted: 2017-08-01T10:32:46-07:00
by rschooff
Thank you. That solved my problem!