Skip to main content

Change the Density of an image

Change DPI transformation allows users to change the density metadata of an image. Changing the density of an image refers to altering the DPI of an image. DPI stands for "dots per inch," and it refers to the number of dots that can be placed in a line within a one-inch space. DPI is a measurement of the resolution of an image on a screen or printed material, and it can be adjusted to increase or decrease the level of detail in an image.

Changing the DPI of an image or document involves adjusting the number of dots per inch that are used to create the image. Increasing the DPI will result in a higher level of detail while decreasing the DPI will result in a lower level of detail.

For example, if you have a 100 DPI image and you increase the DPI to 300, the image will become sharper and more detailed. However, if you decrease the DPI to 50, the image will become less detailed and appear more pixelated.

info

It's important to note that changing the DPI of an image may also affect the size of the file. Higher DPI images will generally be larger in file size than lower DPI images.


Params

Density (d)

The density refers to the number of pixels or dots per unit area.

In digital images, density is typically measured in pixels per inch (PPI), while in printing, it is measured in dots per inch (DPI). The higher the density, the more detail an image or printed material can display.

Changing the density of an image involves adjusting the number of pixels or dots per unit area. Increasing the density will result in a higher level of detail; while decreasing the density will result in a lower level of detail.

The default density is 300. The minimum density you can set is 1, and the maximum is 300.


note

In most circumstances, there is no noticeable change in the transformed image.

Below is the corresponding Context API Response.

{
"name": "density",
"metadata": {
"size": 381704,
"depth": "uchar",
"space": "srgb",
"width": 1140,
"format": "jpeg",
"height": 760,
"density": 200,
"channels": 3,
"hasAlpha": false,
"hasProfile": true,
"orientation": 1,
"isProgressive": false,
"resolutionUnit": "inch",
"chromaSubsampling": "4:2:0"
},
"operation": "Basic",
"identifier": "t"
}

The highlighted JSON key is explained in the below table:

PropertyDescription
densityThe value entered in the Density parameter. The density decides how the image will be displayed in print.

Transform and enhance your images using our powerful AI technology. Organize your images in more efficient manner and our extensible APIs enables seamless integration with your system unleashing the power of our platform. Join the large community of users who use PixelBin to transform their image libraries and achieve excellent performance

Is this page useful?