patextract
Manual page and help for the patextract linux command. Patextract is a program that extracts a portion of a PNG image file and outputs that portion in PAT format. The input file (infile) is an RGB or RGBA PNG file; writes the resulting part of the image in PAT format to the standard output (stdout). The file can be used with visgrep to copy the contents of the screen. The patextract command is part of the xautomation package.