Camera MP Resolution Calculator

Overview

Higher end and older mid-to-low-end digital cameras are 4:3 (SD). newer low-to-mid-end digital cameras are 16:9 (HD). Video cameras such as camcorders can be either 4:3 (SD) or 16:9 (HD). Some camers (video and digital) can do both 4:3 (SD) and 16:9 (HD).

What is meant by 16:9 and 4:3 is the ratio of x:y or horizontal:vertical sometimes size-wize of the image sensor,but always of the output format.

Convert MP to X and Y (4:3)

,

$X=\sqrt{\frac{4}{3}×1000000×\mathrm{MP}}$

$Y=\sqrt{\frac{3}{4}×1000000×\mathrm{MP}}$

Convert MP to X and Y (16:9)

,

$X=\sqrt{\frac{16}{9}×1000000×\mathrm{MP}}$

$Y=\sqrt{\frac{9}{16}×1000000×\mathrm{MP}}$

Convert X and Y to MP

,

$\mathrm{MP}=\frac{X×Y}{1000000}$

making an HTML image tag from a camera image

Internet absolute `<img src="http://nowhere.com/i/image.jpg" alt="description text"/>`

Site absolute (must reside on same server) `<img src="/i/image.jpg" alt="description text"/>`

Document relative, from current document. let's assume that current document is /whinny/jocko.html `<img src="../i/image.jpg" alt="description text"/>`

Having the `/` before the closing `>` ensures that it works on either HTML5 or XHTML or XML. There is an optional `width="320" height="240"` set of attributes which you can set.

You can reduce the size of the image by changing the width and height, which streches the image. But it will not change the file size. It will take just as long to load in a browser. If you want to have it show up as a certain size on a browser and load fast, it is best to resize a copy of the image to the desired size (usually somewhere between 67x50 for thumbnails to up to maximum 640x480 is a good size for images and use that copy.

The ratio is usually 4:3 (x:y) but on some cameras it is 16:9, so see your camera manual to find out.

You can tell by taking the vertical camera resolution and first multiplying it by 4/3. if you get the horizontal resolution listed in the camera's manual's liste of resolutions, then you have a 4:3 (SD) camera and you use this ratio to calculate sizes.

If you get a value that's fairly off, then it's probably 16:9, so try starting with the vertical resolution and multiply by 16/9. if you get the horizontal resolution, you have determined your camera's ratio to be 16:9 (HD).

4:3 (SD) vs 16:9 (HD) sample camera calculations
vertical resolutionratio (SD or HD)math resulting horizontal resolution
50 4:3 50×4÷3=67 67
50 16:9 50×16÷9=89 89
240 4:3 240×4÷3=320 320
240 16:9 240×16÷9=427 427
480 4:3 480×4÷3=640 640
480 16:9 480×16÷9=853 853