Convert NDPI to JPG
Turn NDPI images into JPEG. An overview of the whole slide at most 4096 pixels on its longer side; a smaller slide keeps its own size, at quality 90 unless asked otherwise.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop NDPI files on the dialor turn it to pick what to do
A slide overview as one JPG.A whole-slide NDPI becomes a single picture at quality 90.
What you get
One JPG that shows the whole slide. Its longer side is at most 4096 pixels. A slide that is smaller than that keeps its own size.
The quality is 90 unless you change it. JPG compression is lossy, so some fine detail is not kept.
What it leaves behind
The full-resolution pyramid is not in the JPG. It is far too large for one picture, so the result is an overview and not a copy of every level in the NDPI file.
Options
Set Max width or Max height to make the picture smaller. Anything already below the limit stays as it is, so nothing is enlarged. For more on this, see resize JPG.
Set Quality between 1 and 100. Above 90 the file grows quickly while the picture barely changes. Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result by 90, 180 or 270 degrees clockwise.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted.
NDPI and JPG.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · 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 - 03 · 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 - 04 · 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 - 05 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
Hamamatsu NDPI
Whole-slide microscopy images from Hamamatsu scanners.
- Extensions
- .ndpi
- MIME type
- image
/x -ndpi - Kind
- Images
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same NDPI to JPG conversion through the API, for your app or your agent.
$ cv convert photo.ndpi photo.jpg$ cv convert photo.ndpi photo.jpgQuestions.What people ask about NDPI to JPG.
No. It is an overview with a longer side of at most 4096 pixels. The full-resolution pyramid is too large for one picture.
Yes. Set Max width or Max height to a lower value. The shape of the slide is kept.
No. A slide smaller than 4096 pixels on its longer side keeps its own size.
The file could not be parsed, so the conversion stops. No JPG is made.