res2image -palette -pipe "cat > %s.tif; tifftopnm < %s.tif | ppmtogif > %s.gif"leads to scrambled colors with tifftopnm from Netpbm version 1 March 1994 (version 9.12 does not seem to have this problem). This is avoided by going via pnm:
res2image -palette -pnm -pipe "ppmtogif > %s.gif 2> /dev/null"Also Xloadimage version 4.1 cannot correctly handle the TIFF 4-bit palette format. I have had no such problems with ImagineMagick 5.1.1.