Convert XPM to JP2

Turn XPM 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 XPM files on the dialor turn it to pick what to do

An XPM image as a JPEG 2000 file.You get one JP2 file at the same width and height as the XPM. It is lossy at quality 80 unless you choose otherwise.

  1. What you get

    A JPEG 2000 picture made from the XPM, which stores an image as C source. The result is one file with the same width and height as the original.

    JPEG 2000 is a wavelet image codec used in archives, cinema and medical imaging.

  2. Setting the quality

    Compression is lossy, so some detail is not kept. Set Quality to a value from 1 to 100 to decide how much detail is kept. The default is 80.

    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 2000 file back into an XPM, use JP2 to XPM. For other options, see every XPM conversion.

XPM and JP2.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 80

The formats

From · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images
To · JP2

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 XPM to JP2 conversion through the API, for your app or your agent.

terminal
$ cv convert photo.xpm photo.jp2
$ cv convert photo.xpm photo.jp2

Questions.What people ask about XPM to JP2.

01OF 04

Yes. The width and height stay the same.

Yes. It is lossy at quality 80 by default. Set Quality higher to keep more detail.

The default is 80. The range is 1 to 100.

Usually not. Above 90 the file grows quickly while the picture barely changes.

More conversions.Other ways in and out of XPM and JP2.