Image size on different iOS cameras?

I create a function in my application that allows people to take photos of the deviceโ€™s camera and add a caption over the resulting image.

I do this by merging the image received from the camera with another overlay image.

I know that on iPhone 4 the camera image is 1936 x 2592. Therefore, I prepared an overlay image of the same size.

I wonder if the image size is different on other devices such as iPad, iPhone 5 or on the front of these devices? Since I only have an iPhone 4, I cannot verify this.

By the way, if someone knows the best way to get closer, I will be grateful for any suggestions.

Thanks Shani

+6
source share
2 answers

Well, the size of the image will depend on the available camera. iPhone 4 has a 5.0 megapixel camera that produces 2592x1936 pixels. For example, the iPhone 4S is equipped with an 8-megapixel camera with images of 3264 ร— 2448 pixels. Older phones have lower-resolution cameras, and the iPad 2 apparently has a 0.7 megapixel camera ...

In short, you cannot really rely on a specific image size, especially if you want to be reliable in the future. Either you must provide overlays in all specific permissions and update them accordingly, or have a rather large version that will be reduced (maybe not very). It would be best to make the overlay live on the phone, if possible (you will need to have a vector representation for this).

+7
source

I did a little testing, and here are the results that I have so far, feel free to add to my list.

iPhone6

Front: 960.0 - 3x 1280.0 - 4x Back: 2448.0 - 3x 3264.0 - 4x 

iPhone4

 Front: 480.0 - 3x 640.0 - 4x Back: 1936.0 - 121x 2592.0 - 162x 

iPad4

 Front: 960.0 - 3x 1280.0 - 4x Back: 1936.0 - 121x 2592.0 - 162x 
+4
source

Source: https://habr.com/ru/post/901621/


All Articles