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 of 1 = the original size (no thoughts, head empty), anything lower than 1 shrinks the frames, and anything greater than 1 makes 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/--miny and --maxx/--maxy literally cannot be used in combination with -x, -y and --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 πŸ‘‘

pfsin(1) pfsout(1)


πŸ’€ 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 πŸ’œ