# As Google and Yandex store an infinite number of photos?

As Google and Yandex store an infinite number of pictures?
In the database they image is stored as pixels, then you can easily identify a duplicate and keep only the originals. Combinations of pixels are limited.
One 32-bit pixel is 16,777,216 options. One pixel takes 4 bytes, thus a single-pixel images would require 4 * 16777216 = 64 MB storage. For images to 2048 x 2048 - combinations will 16777216 * 2048 * 2048 = 70368744177664 (right?) that will require "only" 256 TB.
What?
June 10th 19 at 15:24
June 10th 19 at 15:26
Solution
As Google and Yandex store an infinite number of photos?
No way. To store an infinite amount of information is impossible.
They store a finite amount of information, its volume is known, the growth is predictable.

Your math with pixels is lame. We should start to get acquainted in what form the image is stored.

No pixels there.
There is a file which is necessary to preserve - known for its volume, so it is easy to calculate how many discs should be added.
June 10th 19 at 15:28
Solution
In the first formula why you took the multiplication, not exponentiation, so you get funny little number
Pictures of finite and lie on the disks
June 10th 19 at 15:30
Solution
The choice of the size of the saved photos and videos
You can choose the size of photos and videos uploaded to Google Photos library, or free space in Google Drive.

Select one of the options: high quality or original size.
"High quality"
You can store unlimited number of files.
The photos are compressed to save space. If the photo resolution exceeds 16 m., it will be reduced to this value.
This is enough to print photos in the size 61x40,6 see
If the video resolution exceeds 1080p, it will be reduced to this value. If the video resolution does not exceed 1080p, the saved file the quality will not be inferior to the original

Same goes for Google Drive - Google shakes some file formats that they do not take up much space on the servers.