Jpeg calculating max size

后端 未结 5 2044
灰色年华
灰色年华 2021-02-08 00:19

I have to say the I don\'t know much about how file formats work. My question is say I have a jpeg file that is 200 px by 200 px, how can one calculate what the maximum size th

5条回答
  •  粉色の甜心
    2021-02-08 00:52

    I'm not sure this would be that helpful, but I believe that the absolute maximum it could be would be:

    width * height * 4 (size of int) You should probably also add in a maybe a kilobyte for metadata... but I doubt the image would EVER reach that (as that is the whole point of JPEG compression)

提交回复
热议问题