LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamfixtrunc

fixes truncated images

TLDR

Fix truncated image
$ pamfixtrunc [truncated.pam] > [fixed.pam]
copy
Fill with specific value
$ pamfixtrunc -fillvalue=[0] [truncated.pam] > [fixed.pam]
copy

SYNOPSIS

pamfixtrunc [options] [file]

DESCRIPTION

pamfixtrunc fixes truncated images. Pads missing data.The tool completes incomplete files. Part of Netpbm.

PARAMETERS

FILE

Truncated PAM/PNM file.
-fillvalue VALUE
Fill value for missing pixels.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm-extras
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

Part of Netpbm. Fills missing data. Original data lost.

HISTORY

pamfixtrunc is part of Netpbm for fixing truncated image files.

SEE ALSO

pamfix(1), netpbm(1)

Copied to clipboard
Kai