# DPI

From PanoTools.org Wiki
(Redirected from PPI[*])

## Does DPI/PPI Matter for Panoramas?

### Short answer

No!

### Long Answer

First, before we go further, let's define our terms.

Pixel - all digital images are composed of pixels ("picture elements") - they are the smallest unit of detail within an image. To properly understand how much image data is in an image you must refer to the number of pixels. For instance, one can easily determine that a 3000x2400 pixel image has significantly more image data than a 640x480 pixel image. Expressing pixel counts - whether by dimensions (3000x2400) or absolute pixel counts (10 megapixels, or 10 million pixels) - is the only relevant, deterministic way of discussing the "size" of a digital image

DPI = dots per inch. This is a common printers term, and refers to the number of *dots* a printer can lay down within a linear inch. A dot is the smallest unit of ink that can be layed down on paper, and is not equivalent to a pixel - a single pixel may generate multiple dots (as, for instance, you'd get if you fed a 300ppi image to a 1440dpi printer). DPI values associated with an image are essentially metadata - it provides additional context (print size) to the image data but does not directly affect the image data itself.

PPI = pixels per inch. Confusingly similar to DPI, PPI is also a relative unit which determines the physical size of a pixel, so by knowing the pixe dimensions (3000x2400) and a PPI (300ppi), we can define the output size (in this case, 10x8 inches).

Imagine a chess board as a simplified digital image - it is an 8x8 grid of squares, so it has an absolute pixel dimension of 8x8, or 64 pixels. It's easy to see that whether the chessboard is 8 inches (1 pixel, or square, per inch) across, or 80 feet (1 pixel per foot), it contains the exact same amount of data - 64 pixels worth.

#### Back to the question

When producing panoramas, our source images are often assigned a ppi value by our camera or RAW processor. This value, often 72ppi or 300ppi, is completely arbitrary. Once we've run our images through stitching software, we often see the PPI value has been changed - usually reset to a default of 72ppi. This causes concern by those who notice this change, that somehow the image now has fundamentally less image data than, for instance, if it had stayed at 300ppi. In fact, all that has happened is a simple piece of metadata has been lost - the underlying image data is exactly the same.

For the purposes of posting images online, or displaying in other digital mediums (DVD, CD-ROM, PDAs, etc), the ppi value is not even considered. All that matters for digital display is the absolute number of pixels. For people targeting these environments, do not worry about your image's PPI.

For people targeting printed output, you'll need to adjust the PPI, and possibly the pixel dimensions (by "scaling") of your image using an image editor such as Photoshop in order to match both the PPI and physical dimensions of your output.

#### So, in a nutshell

The change in PPI during stitching does nothing to impact your image quality. If you're producing for print, you may have to re-set the PPI after stitching.

Retrieved from "http://wiki.panotools.org/index.php?title=DPI&oldid=9388[*]"