[TIMOB-24641] Photo taken with Media.showCamera are blurred
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-07-30T16:01:43.000+0000 |
Affected Version/s | Release 6.0.3 |
Fix Version/s | n/a |
Components | iPad |
Labels | ios |
Reporter | Hendrik Elsner |
Assignee | Vijay Singh |
Created | 2017-04-27T15:30:12.000+0000 |
Updated | 2019-07-30T16:01:43.000+0000 |
Description
Photos taken with Ti.Media.showCamera are blurred (see attachments). This occurs while still in the showCamera-Window before clicking "use photo".
This affects SDK 5.5.1.GA and 6.0.3.GA.
*Sample App*
var win = Titanium.UI.createWindow();
var btn = Ti.UI.createButton({
title: 'OPEN CAMERA'
});
btn.addEventListener('singletap', function () {
Ti.Media.showCamera({
autorotate: false,
showControls: true,
success: function(event) {},
cancel: function() {},
error: function(error) {},
saveToPhotoGallery: true,
allowEditing: false,
mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]
});
});
win.add(btn);
win.open();
*Steps*
* Build Sample-App
* Click on "OPEN CAMERA"
* Quality is good in live-preview
* Take a photo
* Quality is bad on image-preview
Attachments
File | Date | Size |
---|---|---|
After.jpg | 2017-04-27T19:45:48.000+0000 | 1272694 |
bad_quality_after.png | 2017-04-27T15:26:57.000+0000 | 6789213 |
Before.jpg | 2017-04-27T19:45:35.000+0000 | 123366 |
good_quality_before.png | 2017-04-27T15:27:06.000+0000 | 10388604 |
SampleCamera.zip | 2017-05-02T06:43:10.000+0000 | 49524 |
Hello, We have tested the issue. The image quality is same in my view. See the screenshot attached (Before.jpg, After.jpg). Tested with SDK 6.0.3.GA.
Hello Sharif, I noticed the effect only occurs on *the large iPad Pro* which my app is targeting. You can see a clear difference if you mount the device or stand it on a surface while taking the photo. The image quality looks like a shaky picture. If you use the native camera-app this effect does not occur. Is there any kind of compression when taking photos with showCamera?
Hello, In my knowledge image taken with showCamera does not compress the taken image. Moving to engineering for farther analysis.
Assigning to [~vijaysingh] for further investigation. We do not do anything special for the iPad Pro, so this might be an iOS issue of the underlaying framework. I would propose that we provide a sample native iOS project, so [~hendrikelsner] can try it out.
[~hendrikelsner] I have attached SampleCamera.zip, which is native iOS project for camera. Can you please do the image comparison captured with Titanium app and attached native app and let me know if both gives the same result or different. Thanks.
Hi @Vijay Singh , I tested your SampleCamera-App on the iPad Pro. The captured image is not blurred, so it's working as expected. There seems to be a difference to the Titanium image capture.
Unable to reproduce. Images under 8.0.2.GA SDK did not show any blurriness.