sandervanloock / HTMobieL

Thesis repos voor htmobiel.wordpress.com
2 stars 1 forks source link

picture size exceeds canvas limit on iOS 6.0.1 #10

Open miteyema opened 11 years ago

miteyema commented 11 years ago

when taking a picture with the camera, the picture won't be drawn on the canvas. when uploading a small picture (http://www.office-kit.com/excel_invoice_manager/images/invoice_printed.gif), it will draw on the canvas.

miteyema commented 11 years ago

This is a know limitation: http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html#//apple_ref/doc/uid/TP40006482-SW15

"The maximum size for a canvas element is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM."

Tested on an iPhone 3GS Black 32GB, so this one has 256 MB of RAM. When taking a picture with the camera, it has a resolution of 1536x2048 = 3,14 MB and that exceeds the limit for the canvas.