You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "lmnbeyond (JIRA)" <ji...@apache.org> on 2012/07/12 08:56:35 UTC
[jira] [Created] (CB-1044) [iOS] Camera getPicture, with identical
cameraOptions, but get different result when run on retina display and
non-retina display
lmnbeyond created CB-1044:
-----------------------------
Summary: [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
Key: CB-1044
URL: https://issues.apache.org/jira/browse/CB-1044
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 1.9.0
Reporter: lmnbeyond
Assignee: Shazron Abdullah
Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1044) [iOS] Camera getPicture, with
identical cameraOptions, but get different result when run on retina
display and non-retina display
Posted by "lmnbeyond (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412580#comment-13412580 ]
lmnbeyond commented on CB-1044:
-------------------------------
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else UIGraphicsBeginImageContext(size);
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1044) [iOS] Camera getPicture, with
identical cameraOptions, but get different result when run on retina
display and non-retina display
Posted by "lmnbeyond (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412580#comment-13412580 ]
lmnbeyond edited comment on CB-1044 at 7/12/12 7:27 AM:
--------------------------------------------------------
First of all, please forgive me for my poor English.
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else
{
UIGraphicsBeginImageContext(size);
}
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
was (Author: lmnbeyond123):
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else
{
UIGraphicsBeginImageContext(size);
}
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1044) [iOS] Camera getPicture, with identical
cameraOptions, but get different result when run on retina display and
non-retina display
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-1044:
---------------------------------
Fix Version/s: 2.3.0
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Fix For: 2.3.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1044) [iOS] Camera getPicture, with
identical cameraOptions, but get different result when run on retina
display and non-retina display
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507805#comment-13507805 ]
Shazron Abdullah commented on CB-1044:
--------------------------------------
Need to test on actual devices: (1) Retina iPhone/iPod Touch (iPhone 4 or greater, or iPod Touch 5th gen or greater) (2) iPhone 3GS
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Fix For: 2.3.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1044) [iOS] Camera getPicture, with
identical cameraOptions, but get different result when run on retina
display and non-retina display
Posted by "lmnbeyond (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412580#comment-13412580 ]
lmnbeyond edited comment on CB-1044 at 7/12/12 7:25 AM:
--------------------------------------------------------
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else
{
UIGraphicsBeginImageContext(size);
}
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
was (Author: lmnbeyond123):
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else UIGraphicsBeginImageContext(size);
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira