Skip to main content

Load netpbm images in Pillow

Project description

pillow-netpbm

A Pillow plugin that bridges netpbm converter binaries, adding read support for dozens of legacy/obscure image formats.

Supported formats

Each format is registered as a Pillow image plugin when its converter binary is installed. Formats with magic bytes or match functions are detected by content; the rest fall back to file extension matching.

Format Converter Extensions Detection Tested
Amiga IFF ILBM ilbmtoppm .iff .ilbm .lbm match yes
Amiga Info Icon infotopam .info magic yes
ATK Raster atktopbm .raster magic yes
Atari Compressed Spectrum spctoppm .spc ext no
Atari Degas pi1toppm .pi1 ext yes
Atari Degas Elite pc1toppm .pc1 magic yes
Atari Degas Low-Res pi3topbm .pi3 ext yes
Atari Neochrome neotoppm .neo ext yes
Atari Uncompressed Spectrum sputoppm .spu ext yes
AutoCAD Slide sldtoppm .sld magic yes
AVS X Image avstopam .avs ext yes
CMU Window Manager Bitmap cmuwmtopbm magic yes
CompuServe RLE cistopbm .cis ext yes
Fiasco Wavelet fiascotopnm .wfa magic yes
FITS fitstopnm .fits .fit .fts magic yes
Garmin SRF srftopam .srf magic yes
GEM Raster gemtopnm .gem ext yes
Gould Scanner gouldtoppm .gould ext no
Group 3 Fax g3topbm .g3 ext yes
HIPS hipstopgm .hips ext no
HP PaintJet pjtoppm .pj ext yes
Img-whatnot imgtoppm .img ext no
Interleaf leaftoppm .leaf magic yes
JBIG jbigtopnm .jbig .jbg .bie ext yes
Kodak Photo CD hpcdtoppm .pcd ext no
Lisp Machine Bitmap lispmtopgm magic yes
MacPaint macptopbm .macp ext yes
MGR Bitmap mgrtopbm .mgr match yes
Microdesign mdatopbm .mda match yes
MRF mrftopbm .mrf magic yes
MTV Ray Tracer mtvtoppm .mtv ext no
Palm DB Image pdbimgtopam .pdb ext yes
PostScript Image Data psidtopgm .psid ext no
QRT Ray Tracer qrttoppm .qrt ext no
SBIG CCD Camera sbigtopgm .sbig ext yes
SBIG ST-4 CCD Camera st4topgm .st4 ext yes
Solitaire sirtopnm .sir magic yes
Sony Mavica 411 411toppm .411 ext no
SPOT Satellite spottopgm .spot ext no
Sun Icon sunicontopnm .icon ext yes
SVG svgtopam .svg ext yes
TeX PK Font Bitmap pktopbm .pk magic no
Usenix FaceSaver fstopgm .fs ext yes
Utah RLE rletopnm .rle magic yes
Wavefront RLA rlatopam .rla ext no
Wireless Bitmap wbmptopbm .wbmp ext yes
X IMage ximtoppm .xim ext no
X Window Dump xwdtopnm .xwd match yes
XV Thumbnail xvminitoppm magic yes
Xerox Doodle Brush brushtopbm .brush ext no
YBM Face File ybmtopbm .ybm magic yes
Zeiss Confocal zeisstopnm .lsm ext no

Excluded formats

The following netpbm converters are not supported by this plugin:

Converter Format Reason
cameratopam Camera RAW (NEF, CR2) Segfaults on NEF files, "File seek failed" on CR2
ddbugtopbm Diddle/DiddleBug sketch DB Reads stdin only, writes multiple .pbm files to CWD
pcdovtoppm Kodak Photo CD Overview Shell script pipeline, not a single-binary converter
bioradtopgm Bio-Rad Confocal Magic at byte offset 54, beyond Pillow's 16-byte prefix limit; no known extension
escp2topbm Epson ESC/P2 raster No fixed header magic, no known file extension
thinkjettopbm HP ThinkJet No fixed header magic, no known file extension
eyuvtoppm Encoder YUV Headerless format, dimensions not in file
yuvtoppm YUV 4:1:1 Headerless format, dimensions not in file
yuy2topam YUY2 Video Frame Headerless format, dimensions not in file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pillow_netpbm-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pillow_netpbm-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pillow_netpbm-0.1.0.tar.gz.

File metadata

  • Download URL: pillow_netpbm-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pillow_netpbm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 120cda2d2fb8a89bb8ab21b9c6027aa8984b7e71310b61531c83d9a4daf33151
MD5 e4ba1f5b766c7288b102b224d23310dc
BLAKE2b-256 ac4d45930a2bdd1a9a0a7073f10c098d334863def225e451da1cd99c2de61b7d

See more details on using hashes here.

File details

Details for the file pillow_netpbm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pillow_netpbm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pillow_netpbm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32d8bb770de663e6ca537459ce6d4fe2eed87218d6ae17ee51dcdbb67641b50d
MD5 ac698db464978855c5be123e9e73cb3e
BLAKE2b-256 29e3bec66196895675bbba8f8cd59b50055666c26c1fe06264d6700022c25def

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page