pfsclamp(1)
π pfsclamp(1) β General Commands Manual
okay bestie, gather round, because pfsclamp is about to become your new main character β¨ it lives in the General Commands Manual (section 1, obvi) and it does one thing and it does it gorgeously.
πΈ NAME πΈ
pfsclamp β clamp color and luminance channel values to be within the specified range π
β¨ SYNOPSIS β¨
pfsclamp [--min <minimum>] [--max <maximum>] [--percentile] [--zero]
[--rgb]
π¦ DESCRIPTION π¦
so like. imagine a channel value that's just doing too much. it's above your max. it's below your min. it's giving chaos π that's literally what this command is for.
Use this command to clamp values of luminance and color channels so they land within the specified range. Translation: if a value in the channel is above the specified maximum, or below the specified minimum, you set that value to either the minimum or the maximum. no in-between drama, no negotiating, it just gets snapped into range. periodt π
Important vibe check: the command operates directly on XYZ channels. that's the tea. π΅
π OPTIONS π
--min <val>β the lower bound for clamping. Default value:0.0001(that's 10^-4, tiny but mighty π§)--max <val>β the upper bound for clamping. Default value:100000000(that's 10^8, enormous, iconic π)--percentile,-pβ treat the given min and max values as a percentile instead. lowkey a whole different mindset π--zero,-zβ set values that are out of the clamping range to zero, instead of setting them to the specified maximum and minimum. bye felicia π--rgbβ perform the clamping in RGB space instead π¨
π EXAMPLES π
pfsin memorial.hdr | pfsclamp | pfsout memorial_cl.hdr
Remove possible out-of-range values β for examples zeros β from the memorial image. (yes, the original says "for examples zeros", we don't question the ancestors, we just vibe π«Ά)
pfsin memorial.hdr | pfsclamp --max 0.95 -p | pfsout memorial_cl.hdr
Remove 5% of the brightest pixels from the original image. the brightest pixels really said "not today" π
π₯ SEE ALSO π₯
π BUGS π
Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de> and Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>.
fr fr if something's broken, tell them, don't just suffer in silence bestie π
and that's the whole page!! this is pfsclamp(1) from the General Commands Manual β no date given on the original footer, just the humble pfsclamp(1) name chillin' at the bottom. slay, go clamp something πΈπ
β¨
π¦ 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