PPM2TIFF(1)
π NAME π
ok so ppm2tiff β she makes a TIFF file out of PPM, PGM and PBM image files. bestie behavior, fr fr. this is the PPM2TIFF(1) page from the LibTIFF manual, and yes we're getting into it.
β¨ Synopsis β¨
ppm2tiff [ options ] [ input.ppm ] output.tif
π¦ DESCRIPTION π¦
ppm2tiff takes a file that's in PPM, PGM or PBM format and converts it into a TIFF. like a glow-up but for image formats, no cap.
By default, the TIFF image is created with data samples packed (PlanarConfiguration=1), compressed with the Packbits algorithm (Compression=32773), and with each strip no more than 8 kilobytes. those are the default vibes π
but you can override them, or just explicitly specify them, with the options down below.
If the PPM file contains greyscale data, then the PhotometricInterpretation tag is set to 1 (min-is-black). otherwise it's set to 2 (RGB). she reads the room and picks accordingly β¨
If no PPM file is specified on the command line, ppm2tiff will read from the standard input. yes, she'll take it straight from stdin, very main character of her.
π OPTIONS π
-ccompress β specify a compression scheme to use when writing image data:-c nonefor no compression,-c packbitsfor PackBits compression (this one will be used by default π),-c lzwfor Lempel-Ziv & Welch compression,-c jpegfor baseline JPEG compression,-c zipfor Deflate compression,-c g3for CCITT Group 3 (T.4) compression, and-c g4for CCITT Group 4 (T.6) compression. pick your fighter π₯-rstriprows β write data with a specified number of rows per strip. by default the number of rows/strip is selected so that each strip is approximately 8 kilobytes. so if you don't say anything, she's doing the 8k math herself, periodt.-Rresolution β mark the resultant image to have the specified X and Y resolution, in dots/inch. both axes, one number, iconic.
π SEE ALSO π
tiffinfo(1)tiffcp(1)tiffmedian(1)libtiff(3tiff)
go read those too, iykyk π«Ά
π AUTHOR π
LibTIFF contributors π
π COPYRIGHT π
1988-2025, LibTIFF contributors
ok that's the whole page bestie, you're literally a ppm2tiff expert now π
this was LibTIFF version 4.7, dated Jun 27, 2026 β slay, go convert something πΈβ¨
π¦ where this page comes from
- fedora 43: libtiff-tools 4.7.2-1.fc43
- fedora 43: libtiff-tools 4.7.2-3.fc43 Β· libtiff
- fedora 44: libtiff-tools 4.7.2-1.fc44
- fedora 44: libtiff-tools 4.7.2-3.fc44 Β· libtiff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms