CAMERATOPAM(1)
π NAME π
cameratopam β convert raw camera image to PAM π
πΈ SYNOPSIS πΈ
cameratopam
[input_file_name]
[-identify_only] [-quick_interpolate] [-half_size] [-four_color_rgb]
[-document_mode] [-balance_auto] [-balance_camera] [-red_scale=float]
[-blue_scale=float] [-brightness=fraction] [-no_clip_color] [-rgb]
[-secondary] [-linear] [-verbose]
okay bestie, housekeeping first: every single option can be abbreviated down to its shortest unique prefix. You can also use two hyphens instead of one if that's your vibe, and you can put either white space or an equals sign between an option name and its value. Whatever floats your boat πΆ
πΈ DESCRIPTION πΈ
This program is part of Netpbm(1).
cameratopam converts from any of dozens of raw camera image formats to PAM. Dozens!! dozens β¨
So here's the tea β: digital still cameras often can produce images in a special raw format in addition to something more standard such as TIFF or JFIF (JPEG). The software that ships with the camera lets you manipulate the image using information which is lost when the camera converts to the common format. And a particular camera model often has a unique raw format β so like, every camera's raw is doing its own little main character thing π
β¨ OPTIONS β¨
On top of the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), cameratopam recognizes the following command line options:
-identify_onlyβ Report to Standard Error the format of the input image but don't generate an output image. Program fails if it cannot recognize the format. It's giving "just tell me what you are, no pictures" π-verboseβ Report to Standard Error details of the processing. She's chatty, she's sharing the lore π£οΈ-quick_interpolateβ Use simple bilinear interpolation for quick results. The default is to use a slow, high-quality adaptive algorithm. So yeah, fast and mid vs slow and gorgeous, pick your fighter π₯-half_sizeβ Half-size the output image. Instead of interpolating, reduce each 2x2 block of sensors to one pixel. Much faster than-quick_interpolate. zoom zoom ποΈ-four_color_rgbβ Interpolate RGB as four colors. This causes a slight loss of detail, so use this only if you see false 2x2 mesh patterns in blue sky. Fixes the sky, costs you a lil detail, we love a tradeoff π-document_modeβ Show the raw data as a grayscale image with no interpolation. This is good for photographing black and white documents. Scandocs found β¨π-balance_autoβ Automatic color balance. The default is to use a fixed color balance based on a white card photographed in sunlight. Let the algorithm cook π§π³-balance_cameraβ Use the color balance specified by the camera. Ifcameratopamcan't find this, it prints a warning and reverts to the default. She'll warn you and then just do the default thing, no biggie π«Ά-red_scale=float-blue_scalefloatβ Further adjust the color balance by multiplying the red and blue channels by these values. Both default to1.0. So like, crank it if you must π‘οΈ-brightness=floatβ Change the output brightness. Default is1.0. π-no_clip_colorβ By default,cameratoapmclips all colors to prevent pink hues in the highlights. Combine this option with-brightness=0.25to leave the image data completely unclipped. Fully unclipped, fully raw, fully iconic π-rgbβ Write raw camera colors to the output file. By default,cameratoapmconverts to sRGB colorspace. π¨-secondaryβ For cameras based on the Fuji Super CCD SR, this option causescameratopamto use the secondary sensors, in effect underexposing the image by four stops to reveal detail in the highlights.cameratopamsilently ignores this option for all other cameras. Not your camera? She will not even acknowledge it. ghosted π-linearβ This option causescameratopamto generate a variation on PAM that has "linear" color samples. In true PAM, each sample in the image raster is gamma-corrected; i.e. it is essentially proportional to brightness. With the linear option,cameratopamgenerates an image in which the samples are instead proportional to light intensity.
Without -linear, the image maxval is 255, so the image contains one byte per sample. With -linear, the maxval is 65535, so the image contains two bytes per sample.
Without -linear, cameratopam uses a 99th percentile white point. With -linear, it doesn't. I don't know what that means. π
genuinely no clue bestie, I'm just the messenger π§
π SEE ALSO π
411toppm(1), pamflip(1), pam(1),
π HISTORY π
cameratopam was new in Netpbm 10.28 (June 2005). β
It was derived from the program dcraw by Dave Coffin , by Bryan Henderson in April 2005. Bryan replaced the part that generates the Netpbm output image and removed the Adobe Photoshop output function. Bryan changed the command syntax and made other small changes to make the program consistent with Netpbm. He also split the source code into manageable pieces (dcraw had a single 5000 line source file). 5000 lines?! In ONE file?! not me screaming π she got a glow-up fr fr
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/cameratopam.html
and that's the whole page bestie π«Ά this came to you straight from the netpbm documentation, dated 12 April 2005 β Cameratopam User Manual(1). periodt. π β¨
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms