TIFFCHECK(8)

πŸ’– NAME πŸ’–

okay bestie, welcome to tiffcheck β€” the little icon from the TIFFCHECK(8) page in your System Manager's Manual πŸ’… she's the one who checks your TIFF files for HylaFAX conversion requirements. no cap, that's literally her whole job πŸŽ€


🌸 SYNOPSIS 🌸

/usr/sbin/tiffcheck [ options ] file.tif

✨ DESCRIPTION ✨

so basically, tiffcheck takes a TIFF as input and writes a multi-line text message to the standard output, telling you all the work that needs to happen to get those images ready for facsimile transmission πŸ“ βœ¨

she's usually not even called by a human β€” she gets invoked by the tiff2fax(8) script, which the HylaFAX scheduler uses to prep TIFF documents that got submitted for transmission. she's a behind-the-scenes queen fr fr πŸ‘‘


πŸ¦‹ the first line of output πŸ¦‹

the very first line is a bunch of words separated by + signs, and each one is telling you if the input file should be:

  • rejected (REJECT) πŸ’€
  • reformatted with a different data-encoding scheme (REFORMAT)
  • scaled to different page dimensions (RESIZE)
  • reimaged in a different vertical resolution (REVRES)
  • reimaged for other reasons, like converting from color to black&white (REIMAGE)

the way that this conversion requirements string ALWAYS has its keywords in that exact order above?? iconic. so like, you'd get RESIZE+REVRES if the input file needs to be scaled and converted to a different resolution. periodt πŸ’…

everything that comes after that first line is descriptive text explaining the reason(s) for the file conversion(s). and bestie, that text is literally suitable to send back to a client β€” y'know, in case document conversion fails or just isn't attempted πŸ™ˆ the descriptive text is ordered identically to the keywords in the conversion string, which is what makes it possible to match up each conversion requirement with its reason. so clean. so organized. we love a structured queen ✨


πŸ’… OPTIONS πŸ’…

these are the operations she recognizes:

  • -1 β€” set output to be Group 3 1D-encoded.
  • -2 β€” set output to be Group 3 2D-encoded.
  • -3 β€” set output to be Group 4 MMR-encoded.
  • -w width β€” set the output page width, in pixels. by default, pages are 1728 pixels wide.
  • -l length β€” set the output page length in millimeters. by default, pages are 297 millimeters long.
  • -r vres β€” set the vertical resolution, in lines/inch, at which to image the TIFF.

πŸŽ€ EXAMPLES πŸŽ€

kay so this first color image needs to be converted to black&white, resized to the output page dimensions, and reformatted to use Group 3 1D-encoded data:

hyla% /usr/sbin/tiffcheck jello.tif
REFORMAT+RESIZE+REIMAGE
Document is not a bilevel image (bits/sample 8).
Document requires reformatting, not in Group 3 format.
Document requires resizing to adjust page width (convert to 1728, document is 256).

and this next one is a facsimile received at high resolution (196 lpi) β€” she only needs to be converted to 98 lpi. lowkey the easiest job ever:

hyla% /usr/sbin/tiffcheck faxix.tif
REVRES
Document requires reformatting to adjust vertical resolution (convert to 98, document is 196).

πŸ‘€ SEE ALSO πŸ‘€

tiff2fax(8), faxq(8), hylafax-server(5)


okay that's the whole page bestie, go forth and check those TIFFs πŸ¦‹βœ¨ this was the TIFFCHECK(8) page from the System Manager's Manual, dated January 18, 1996 β€” yeah she's a 90s baby and she still ate πŸ’– mwah, ily, bye 🫢

πŸ“¦ where this page comes from