Convert PNM to JP2
Turn PNM images into JP2. A JPEG 2000 picture at the same size, lossy at quality 80 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 JPEG 2000 picture from a PNM file.The picture keeps its width and height. It is saved as a lossy JP2 at quality 80.
What you get
One JP2 file with the same width and height as your PNM image. PNM covers PBM, PGM and PPM, and any of them can be the input.
JPEG 2000 is a wavelet image codec used in archives, cinema and medical imaging.
Lossy by default
The conversion is lossy, so some fine detail is not kept. At the default quality of 80 the picture is not an exact copy of the PNM.
Set Quality to a value from 1 to 100. Higher values keep more detail and make a bigger file. Above 90 the file grows quickly while the picture barely changes.
Going back
To turn a JP2 file into PNM, use JP2 to PNM. A JP2 made here is lossy, so the PNM you get back is not identical to the one you started with.
PNM and JP2.What each format is, and the options this conversion takes.
- 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 80
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
JPEG 2000
JPEG 2000, a wavelet image codec used in archives, cinema and medical imaging.
- Extensions
- .jp2 .j2k
- MIME type
- image
/jp2 - Kind
- Images
In your code.The same PNM to JP2 conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.jp2$ cv convert photo.pnm photo.jp2Questions.What people ask about PNM to JP2.
No. It is lossy at quality 80 unless you change Quality. Some detail is lost.
No. The JP2 has the same width and height as the PNM.
It sets how much detail the compression keeps, from 1 to 100. Higher keeps more detail and makes a bigger file.
PBM, PGM and PPM files, which are the formats the PNM label covers.