I am creating a feature in my app that lets people take photo in the device camera, and add an overlay above the taken image.
I am doing so by merging the image received from the camera with an other overlay image.
I know that on the iPhone 4, the camera image is 1936 x 2592. So I prepared an overlay image in the same size.
I wonder if the image size is different on other devices like iPad, iPhone 5 or in the front camera of those devices? Since i have only iPhone 4 I can not check that.
BTW if anyone knows a better way to approach that I will appreciate any suggestions.
Thanks Shani
Your iPhone uses a ratio of 3:4 by default, which means that if you wanted to print a 3 x 4 photo or a 6 x 8 photo, you could do it without any cropping at all.
As a baseline, we recommend using 4:3 for photos and 16:9 for videos. This is a good common standard, and you can't go wrong with either of them.
Well the image size will depend on the camera available. iPhone 4 has a 5.0 megapixel camera that produces 2592x1936 pixels. The iPhone 4S for example sports an 8 megapixel camera with pictures of 3264×2448 pixels. Older phones have lower resolution cameras and the iPad 2 seems to have a 0.7 megapixel camera...
In short you cannot really rely on a specific image size especially if you want to be future-proof. Either you have to supply the overlays in all specific resolutions and update appropriately, or have a rather large version that will be scaled down (might not be pretty). The best way though would to render the overlay live on the phone if possible (you'd need to have a vector representation for that).
I did a little testing and here are the results 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With