---
name: "pfssize"
section: "1"
platform: "linux"
package: "pfstools"
version: "2.2.0-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pfssize"
---

# pfssize(1)

Resize frames

## 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

Resize all frames and all channels in the stream. Note that resampling is done on each channel as it is - for color images resampling is usually done in linear (not gamma corrected) XYZ color space.

## OPTIONS

- \--x \<new\_width\>, -x \<new\_width\>

  New x resolution in pixels.

- \--y \<new\_height\>, -y \<new\_height\>

  New y resolution in pixels.

- \--ratio \<scale\_ratio\>, -r \<scale\_ratio\>

  Resize both width and height using the given ratio. Ratio equal 1 is the original size, lower than 1 makes the frames smaller and greater than 1, enlarges the frames.

- \--minx \<max\_width\>, --miny \<max\_heigh\>

  Make sure that the resulting image has at least \<min\_width\> width and/or \<min\_height\> height. Cannot be used in combination with -x, -y and --ratio.

- \--maxx \<max\_width\>, --maxy \<max\_heigh\>

  Make sure that the resulting image has at most \<max\_width\> width and/or \<max\_height\> height. Cannot be used in combination with -x, -y and --ratio.

- \--filter \<filter-name\>, -f \<filter-name\>

  Use filter \<filter-name\> for upsampling (on downsampling, box filter is always used). Available filters:

  **BOX** Box filter. This is the fastest filter, but it also causes visible aliasing artifacts.

  **LINEAR** (default) Bi-linear filter.

  **MITCHELL** Mitchell filter. From *Mitchell and Netravali, Reconstruction* *Filters in Computer Graphics,In Computer Graphics, vol. 22 (4)* *1988*. Since the filter contains negative parts, it may cause halo artifacts and it may result in negative values for HDR images.

## EXAMPLES

- pfsin memorial.hdr \| pfssize -r 0.25 \| pfsout memorial\_small.hdr

  Lower the resolution of memorial.hdr four times.

## SEE ALSO

[**pfsin**(1)](/pfsin/1.md) [**pfsout**(1)](/pfsout/1.md)

## BUGS

Please report bugs and comments to Rafal Mantiuk \<mantiuk@mpi-sb.mpg.de\>.
