For AI agents: the complete documentation index is available at /pds2img/llms.txt, the full documentation bundle is available at /pds2img/llms-full.txt, and this page is available as Markdown at /pds2img/index.md.
pds2img
NASA PDS images to PNG / TIFF

Read PDS3 and PDS4 image products and export lossless 16-bit grayscale images, in the browser or in Node.js.

Saturn photographed by Voyager 1, converted with pds2imgSaturn photographed by Voyager 1, converted with pds2img
🛰️

PDS3 and PDS4

Parses detached and attached PDS3 labels (.LBL) and PDS4 XML labels with Array_2D_Image products.

🖼️

Lossless 16-bit output

Pixels are calibrated with the label's scaling and offset, then normalized to 16-bit grayscale PNG or TIFF.

🌐

Browser and Node.js

Load from URLs, File objects, ArrayBuffers, Node.js Buffers or a directory picked with the File System Access API.

⌨️

Command line

Convert a single product or a whole directory with the bundled pds2img CLI.

📦

No native dependencies

The PNG and TIFF encoders are written in TypeScript. xmldom is only loaded in environments without DOMParser.

🧩

Typed API

Ships TypeScript declarations for every public function, class and label type.