Weight of a photo

jeff60112 Posted messages 3 Status Member -  
Pierr10 Posted messages 13823 Registration date   Status Moderator Last intervention   -

Hello

I think I made a calculation mistake...

The Galaxy S23 has a 50 MP sensor. Taking a non-compressed photo, encoded in RGB, is 1 pixel for 3 bytes, which makes a weight of 50,000,000 * 3 = 150,000,000 bytes, or 150 MB ???

That seems like a lot....

What mistake am I making?

Thank you for your answers, best regards

Jean Francois

4 answers

  1. jeannets Posted messages 28379 Registration date   Status Contributor Last intervention   Ambassadeur 6 601
     

    Hello,

    Yes, it's a bit much... but with a 50 million pixel sensor, you have to put the numbers on the table and do the calculation (which I haven't done).

    -- Then, you need to know that these photos are compressed in JPG format and that makes them significantly smaller...

    -- It's also important to bring a little reason into this... It's still a phone, no matter what anyone says, quite different from real cameras... and you can also reduce the file size, as needed, by adjusting the settings... and in the absence of zoom, these devices rely on digital manipulation to compensate...

    -- Be aware that these photos placed on a server... will take a long time to transmit -- imagine for a wedding for example... and for printed ones... on 20m long paper.

    0
  2. jeff60112 Posted messages 3 Status Member
     

    For the calculation, I took the phone data: 50 Mp sensor

    Then, since a pixel is encoded in RGB, 8 bits for R, 8 bits for G, and 8 bits for B, that makes 1 + 1 + 1 = 3 bytes per pixel.

    And finally, 50,000,000 * 3 = 150,000,000

    But really, I'm surprised...

    Thank you for the answers

    Jean Francois

    0
  3. Pierr10 Posted messages 13823 Registration date   Status Moderator Last intervention   5 837
     

    Hello,

    Your calculation is not wrong. When it comes to the weight of a BMP image, it works perfectly.

    With the sensors of cameras, it is impossible—except in rare cases—to link the sensor's resolution to the weight of the image.
    The only case where this should be possible is when the image is saved in an uncompressed RAW format. This is not common since the weight of the image tends to be significant.

    In general, RAW files are compressed.
    This is the case with my camera. The sensor has a resolution of 24 MP; the RAW file has a size of 24 MB. (So, once again, your calculation doesn't apply).
    I don't know the compression rate, so I don't know what the weight of the image is before any processing.
    Then, I develop the RAW, and I manage to obtain a JPEG of about 10 MB maximum.

    On most cameras, a JPEG is obtained directly. There is a choice of quality, so the weight of the photo is variable.

    Returning to the Galaxy S23, your calculation likely works, but we cannot verify anything because in any case, you get compressed photos.

    It would be interesting for you to take a photo in RAW to see what its weight is.


    What is well conceived is clearly stated,
    And the words to say it come easily.
    (Boileau)

    0
  4. txiki Posted messages 6514 Registration date   Status Contributor Last intervention   610
     

    Hello jeff60112,

    It matters. It mainly depends on its resolution.
    ► Where did you get that calculation by Px?

    Regards!


    -2
    1. glandu Posted messages 25506 Registration date   Status Contributor Last intervention   4 090
       

      Hello, just passing by

      : The 50-megapixel sensors produce, in automatic mode, 12.5-megapixel images by grouping four pixels into one using pixel binning. Then there is the definition and choice of format, generally JPEG and its compression.

      0