pfssize(1)
π pfssize β it's giving "resize frames" π
okay bestie, welcome to pfssize(1) from the General Commands Manual β yes she's a section 1 girlie, she lives in your terminal, she resizes frames, and she's about to become your whole personality. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
pfssize β Resize frames π
πΈ SYNOPSIS πΈ
pfssize [--x <new_width>] [--y <new_height>] [--ratio <scale_ratio>]
[--maxx <max_width>] [--maxy <max_heigh>] [--minx <max_width>] [--miny
<max_heigh>] [--filter <filter-name>]
π¦ DESCRIPTION π¦
So basically: pfssize resizes all frames and all channels in the stream. Every single one. No frame left behind, periodt. π
lowkey important note though β resampling happens on each channel as it is. So for color images, the resampling is usually done in linear (not gamma corrected) XYZ color space. Like, that's just how it is, and it's fine, but now you know. π§
π OPTIONS π
--x <new_width>,-x <new_width>β sets the new x resolution, in pixels. horizontal slay π--y <new_height>,-y <new_height>β sets the new y resolution, in pixels. vertical slay π--ratio <scale_ratio>,-r <scale_ratio>β resizes both width and height using the ratio you give it. ratio of1= the original size (no thoughts, head empty), anything lower than1shrinks the frames, and anything greater than1makes them bigger. glow-up or shrink-flation, your call π--minx <max_width>,--miny <max_heigh>β guarantees the resulting image has at least<min_width>width and/or<min_height>height. it's the "no smaller than this bestie" option π--maxx <max_width>,--maxy <max_heigh>β guarantees the resulting image has at most<max_width>width and/or<max_height>height. it's the "no bigger than this bestie" option β
β οΈ okay heads up β--minx/--minyand--maxx/--maxyliterally cannot be used in combination with-x,-yand--ratio. pick a lane, babes. π
--filter <filter-name>,-f <filter-name>β uses the filter<filter-name>for upsampling. (on downsampling, the box filter is always used β no negotiation, that's just the rule.) here's the filter lineup, ranked by vibe:BOXβ the box filter. this is the fastest filter, but she also causes visible aliasing artifacts. speed demon but messy πLINEAR(default) β the bi-linear filter. the default for a reason, she's iconic β¨MITCHELLβ the Mitchell filter. from Mitchell and Netravali, Reconstruction Filters in Computer Graphics, In Computer Graphics, vol. 22 (4) 1988. and listen β since this filter contains negative parts, it may cause halo artifacts, and it may result in negative values for HDR images. gorgeous but chaotic π₯
π EXAMPLES π
pfsin memorial.hdr | pfssize -r 0.25 | pfsout memorial_small.hdr
this lowers the resolution of memorial.hdr four times. look at her go π
π SEE ALSO π
π BUGS π
found a bug? got comments? please report them to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>. he wants to hear from you fr fr π«Ά
okay that's the whole page bestie, you ate, no cap. this was pfssize(1) β a General Commands Manual moment, brought to you by the pfssize(1) gang π
π¦ 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