How to calculate the image file size given:
Image width (in pixel): 70/ 300/ 640 &
Width to height aspect ratio. Ex: 1.5
How to calculate the image file size given:
Image width (in pixel): 70/ 300/ 640 &
Width to height aspect ratio. Ex: 1.5
In order to calculate image size you need to say which format. Some formats have headers which are a few bytes and some are a few kb. there are also headerless images some of the (*.Raw). Next you need to know how many bits or bytes per pixel. Each color can be represented in different bits accurate.
Then you do header + (width *height *bytes per pixel) . This is what you basically want to do.