The relationship between image resolution and size

A picture with a pixel size of 1280×720, the size is about 1280×720×3bytes = 2.7M

Why multiply by 3, because a pixel needs at least three primary colors (RGB) to display the color of the pixel itself. The format of defining colors in XML in Android development is #ffffff. f is a hexadecimal number, that is, a 4-bit binary number, and the three primary colors require 4×6 binary numbers. All need three bytes to display a pixel.
A small movie of 60 seconds, assuming 24 frames per second. Then the size is 60×24×2.7M =3.9G


The size and resolution of the picture both describe the clarity of the picture, the size of the picture x the resolution of the picture = the pixels of the picture. The two are directly proportional to the clarity of the description picture.

The size of a picture is the data describing the size of a picture, usually described as "picture length 1920, width 1080". The "length and width" of a digital picture is not a unit of length in the physical sense, but the number of pixels contained in the two dimensions of the picture, "horizontal" and "vertical". For example, a 1920×1080 image consists of 1920 pixels horizontally and 1080 pixels vertically (2,073,600 pixels in total).

The resolution of a picture refers to the number of pixels per unit area, that is, the pixel density, and the unit is dpi (dots per inch, pixel points/inch). The more pixels in the picture, the larger the size of the picture, but the resolution may not be higher; what really determines the resolution of the picture is the number of pixels per unit area of ​​the picture, that is, the pixel density of the picture.

insert image description here
What is the relationship between image size and resolution?
 Let me answer, share and report
1 answer #热论# What diseases may be caused by improper use of air conditioners?
Xinbixin Service Platform
2022-11-17 · TA received more than 50,000 likes
Followed
The size and resolution of the picture both describe the clarity of the picture, the size of the picture x the resolution of the picture = the pixel of the picture. The two are directly proportional to the clarity of the description picture.

The size of a picture is the data describing the size of a picture, usually described as "picture length 1920, width 1080". The "length and width" of a digital picture is not a unit of length in the physical sense, but the number of pixels contained in the two dimensions of the picture, "horizontal" and "vertical". For example, a 1920×1080 image consists of 1920 pixels horizontally and 1080 pixels vertically (2,073,600 pixels in total).

The resolution of a picture refers to the number of pixels per unit area, that is, the pixel density, and the unit is dpi (dots per inch, pixel points/inch). The more pixels in the picture, the larger the size of the picture, but the resolution may not be higher; what really determines the resolution of the picture is the number of pixels per unit area of ​​the picture, that is, the pixel density of the picture.

Extended information :

The difference between image size and resolution:

1. The objects described are different: the size of the picture is mainly described as the number of pixels in the picture, while the resolution is described as the density of pixels in the unit space.

2. The units of the two are different: There are many units to describe the size of a picture, including pixels, length units (cm, mm, inches, etc.), points, picas, etc. The unit that describes the resolution of a picture is dpi, which is the direct ratio of pixels to inches.

Guess you like

Origin blog.csdn.net/qq_43842093/article/details/132642017