pfsindcraw(1)

πŸ’– pfsindcraw(1) πŸ’–

okay bestie, so this is a page from the General Commands Manual and it's all about pfsindcraw β€” the little icon that turns your camera's RAW files into pfs stream magic. no cap. 🌸


✨ NAME ✨

pfsindcraw β€” read an image in a camera RAW file format supported by DCRAW or LIBRAW and write pfs stream to the standard output.

like. it reads the raw. it writes the pfs. to stdout. that's the whole vibe. 🫢


🌈 SYNOPSIS 🌈

pfsindcraw [--native] <file> [<file>...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this command reads images in a camera RAW file format that DCRAW or LIBRAW supports, and it writes a pfs stream to the standard output. and it writes it as if it had been read from a 16bit ppm file β€” meaning no gamma correction, and white balance straight from the camera if available. πŸ’…

in principle, that kind of data should conform to the definition of High Dynamic Range contents used in the pfstools package. so like, it's giving HDR, it's serving dynamic range, it's doing the thing. ✨

heads up bestie: a raw image may in some cases require clamping to remove zero values β€” peep the examples below. don't skip that part, fr fr. 😭

πŸŽ€ OPTIONS πŸŽ€

  • --native, -n β€” read images in the native camera color space instead of sRGB. this one is meant to be used with pfscolortransform. and listen β€” it must be specified before any file name. like, before. don't test it. πŸ‘‘
  • --dcraw, -d β€” read images using the original dcraw tool, even if libraw is available. old school by choice, iconic behaviour honestly. πŸ’…

πŸ“ EXAMPLES πŸ“

okay these are the moments, bestie. the main character energy:

pfsindcraw img_0070.cr2 | pfsview

view a full dynamic range of a raw image from a Canon 350D camera. πŸ’–


pfsindcraw img_0070.cr2 | pfsclamp --rgb | pfstmo_drago03 | pfsout img.jpg

tone map a raw image and save it as JPEG. and here's why the clamping is there: it removes zero values, which otherwise turn into NaN values after tone mapping. so like. clamp. please. πŸ™ˆ


pfsindcraw --native img_0070.cr2 | pfscolortransform --rgbxyz canon500d.txt | pfsout img.exr

load a RAW image in its native camera color space, calibrate it using the matrix stored in the canon500d.txt file (not supplied β€” yeah, you gotta bring your own 😭), and save it as an EXR image. 🌟


πŸ‘‘ SEE ALSO πŸ‘‘

pfsout(1) pfsinppm(1) pfscolortransform(1)

go read those too, bestie, they're the friend group. 🫢


πŸ’€ BUGS πŸ’€

please report bugs and comments to the pfstools discussion group:

http://groups.google.com/group/pfstools

they wanna hear from you. not me, the group. periodt. ✨


and that's the whole page, bestie πŸ’– this came out of the General Commands Manual under the name pfsindcraw(1) β€” no date on this one, so we're just vibing timestamp-free. slay, go read some raw files. πŸŽ€πŸ¦‹βœ¨