Convert PNM to AVIF
Turn PNM images into AVIF. Same size, lossy at quality 60 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 saved as AVIF.The picture keeps its width and height. The conversion is lossy, at quality 60 by default.
What you get
One AVIF file from your PNM image. PBM, PGM and PPM files are all accepted. AVIF is an AV1-based format with better compression than WebP and support for HDR and alpha.
The output has the same width and height as the input, unless you set a size limit.
Lossy by default
The conversion is lossy, so some detail is lost. Quality is set to 60 unless you change it. Higher values keep more detail and make a bigger file. Above 90 the file grows quickly while the picture barely changes.
Quality takes a value from 1 to 100.
Size and rotation
Set Max width or Set Max height to shrink a large image. The shape is kept. An image already within the limit stays as it is, so nothing is enlarged. Both accept values from 1 to 20000.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
PNM and AVIF.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · 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 60 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
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
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
In your code.The same PNM to AVIF conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.avif$ cv convert photo.pnm photo.avifQuestions.What people ask about PNM to AVIF.
Yes, the width and height stay the same unless you set Max width or Max height. Those options only shrink an image and never enlarge it.
Yes. Quality is 60 by default. Raise Quality to keep more detail, which makes a bigger file.
PBM, PGM and PPM files, which have the extensions pbm, pgm, ppm and pnm.
Yes. AVIF to PNM converts in the other direction.