Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24641] Photo taken with Media.showCamera are blurred

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-07-30T16:01:43.000+0000
Affected Version/sRelease 6.0.3
Fix Version/sn/a
ComponentsiPad
Labelsios
ReporterHendrik Elsner
AssigneeVijay Singh
Created2017-04-27T15:30:12.000+0000
Updated2019-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

FileDateSize
After.jpg2017-04-27T19:45:48.000+00001272694
bad_quality_after.png2017-04-27T15:26:57.000+00006789213
Before.jpg2017-04-27T19:45:35.000+0000123366
good_quality_before.png2017-04-27T15:27:06.000+000010388604
SampleCamera.zip2017-05-02T06:43:10.000+000049524

Comments

  1. Sharif AbuDarda 2017-04-27

    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.
  2. Hendrik Elsner 2017-04-28

    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?
  3. Sharif AbuDarda 2017-04-28

    Hello, In my knowledge image taken with showCamera does not compress the taken image. Moving to engineering for farther analysis.
  4. Hans Knöchel 2017-05-01

    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.
  5. Vijay Singh 2017-05-02

    [~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.
  6. Hendrik Elsner 2017-07-10

    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.
  7. Alan Hutton 2019-07-30

    Unable to reproduce. Images under 8.0.2.GA SDK did not show any blurriness.

JSON Source