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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rschooff
Posts: 2
Joined: 2017-07-31T15:35:57-07:00
Authentication code: 1151

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

Post 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.
User avatar
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

Post by fmw42 »

try adding -quiet after identify. That should suppress the warnings that come with unknown tiff tags.
rschooff
Posts: 2
Joined: 2017-07-31T15:35:57-07:00
Authentication code: 1151

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

Post by rschooff »

Thank you. That solved my problem!
Post Reply