---
name: "patextract"
section: "1"
platform: "linux"
package: "xautomation"
version: "1.09-6"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/patextract"
---

# patextract(1)

Extract a part of a PNG image file

## NAME

patextract - Extract a part of a PNG image file

## SYNOPSIS

**patextract** *infile x y width height*

## DESCRIPTION

**patextract** is a program that extracts a part of a PNG image file and output that part in PAT format.

infile.png is an RGB or RGBA PNG file; the resulting part of the image is written in PAT format to stdout. The file can be used with **[visgrep(1)](/visgrep/1.md)** to scrape screen content.

## OPTIONS

This command does not have any options.

## SEE ALSO

[**pat2ppm**(1)](/pat2ppm/1.md), [**patextract**(1)](/patextract/1.md), [**rgb2pat**(1)](/rgb2pat/1.md), [**visgrep**(1)](/visgrep/1.md), [**xte**(1)](/xte/1.md).

## AUTHOR

**png2pat** was written by Steve Slaven \<bpk@hoopajoo.net\>.

This manual page was written by Aurelien Jarno \<aurel32@debian.org\>, for the Debian project (but may be used by others).
