Convert PNM to JXL

Turn PNM images into JXL. A JPEG XL picture at the same size, lossy at quality 90 unless asked otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PNM files on the dialor turn it to pick what to do

A PNM image as a JPEG XL file.The picture keeps its width and height. It is saved as lossy JPEG XL at quality 90.

  1. What you get

    One JPEG XL file with the same width and height as your PNM image. PBM, PGM and PPM files are all read, whatever the extension: pnm, ppm, pgm or pbm.

    The conversion is lossy unless you ask otherwise, so some detail is not kept exactly. JPEG XL is a modern codec built for very high quality per byte.

  2. Setting the quality

    Set Quality to a value from 1 to 100. The default is 90.

    A higher Quality keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

  3. Going the other way

    To turn a JPEG XL picture back into a PNM file, use JXL to PNM.

PNM and JXL.What each format is, and the options this conversion takes.

  1. 01 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 90

The formats

From · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
Kind
Images
To · JXL

JPEG XL

JPEG XL, a modern image codec with lossless JPEG recompression and very high quality per byte.

Extensions
.jxl
MIME type
image/jxl
Kind
Images

In your code.The same PNM to JXL conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pnm photo.jxl
$ cv convert photo.pnm photo.jxl

Questions.What people ask about PNM to JXL.

01OF 04

No. It is lossy at quality 90 unless you change Quality, so some detail is not kept exactly.

No. The JPEG XL picture has the same width and height as the PNM image.

PBM, PGM and PPM files, which are the formats grouped under PNM. Each conversion gives one file.

It keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

More conversions.Other ways in and out of PNM and JXL.