pfsgamma(1)
π pfsgamma(1) β the General Commands Manual glow-up π
ok so bestie, welcome to pfsgamma, the little icon of the General Commands Manual section 1 lineup. she applies gamma correction to color or gray-scale images and she does it flawlessly, no cap. β¨
πΈ NAME πΈ
pfsgamma β Apply gamma correction to color or gray-scale images π
π¦ SYNOPSIS π¦
pfsgamma [--gamma <gamma> | --inverse-gamma <inv-gamma>] [--mul
<multiplier>]
β¨ DESCRIPTION β¨
okay so here's the tea π β use this command to gamma correct a stream of pfs images. Gamma correction is literally equivalent to raising the value of the R, G and B channels (or Y for gray-scale images) to the 1/gamma power. that's it, that's the whole vibe. if you want more lore on gamma correction, it lives here:
http://www.poynton.com/notes/colour_and_gamma/GammaFAQ.html
This command can work on color images, and when it does, the XYZ channels get transformed to RGB space first, then they get gamma corrected, and then they get converted back to XYZ. π For gray-scale images (only the Y channel, with XZ missing) gamma correction is applied only to the Y channel. she knows exactly which channel to touch, periodt.
Data can be multiplied by an optional multiplier before gamma correction. π
β οΈ Note, and this one's important bestie: gamma correction will set the'LUMINANCE'tag to'DISPLAY', which cancels out any sRGB correction when you're saving to LDR files (likePPM,TIFF). π It will also cause a warning message when saving to HDR files, because the intensities after gamma correction are not linearly related to luminance any more. so like, be aware.
π OPTIONS π
--gamma <gamma>,-g <gamma>β Perform gamma correction (input^(1/gamma)). This can be used to convert images from relative luminance or radiance to pixel values. Default value:1.0π--inverse-gamma <inv-gamma>,-i <inv-gamma>β Perform inverse gamma correction (input^(gamma)). This can be used to convert images from pixel values to relative radiance or luminance. π₯--mul <mul>,-m <mul>β Multiply data by this value before gamma correction. Default value:1π
π EXAMPLES π
pfsin memorial.hdr | pfsgamma -g 1.8 -m 10 | pfsout memorial_gc.ppm
Multiply memorial image by 10, gamma correct it and save to memorial_gc.ppm. ate. π
π SEE ALSO π
pfsin(1) pfsout(1) pfsdisplayfunction(1)
π BUGS π
Please report bugs and comments to the pfstools discussion group (http://groups.google.com/group/pfstools). fr fr, they wanna hear from you π«Ά
ok that's the whole page, and if you made it this far β slay πβ this was pfsgamma(1) straight outta the General Commands Manual, and that's the entire vibe, no cap πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: pfstools 2.2.0-5+b1 Β· GPL-2.0-or-later
- debian trixie: pfstools 2.2.0-9 Β· GPL-2.0-or-later
- fedora 43: pfstools 2.2.0-23.fc43 Β· GPL-2.0-or-later
- fedora 44: pfstools 2.2.0-25.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pfstools 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstools 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstools 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstools 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: pfstools 2.2.0-2 Β· GPL-2.0-or-later
- ubuntu noble: pfstools 2.2.0-7build3 Β· GPL-2.0-or-later
- ubuntu questing: pfstools 2.2.0-9
- ubuntu resolute: pfstools 2.2.0-10 Β· GPL-2.0-or-later
- ubuntu stonking: pfstools 2.2.0-12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms