You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Yutaka Yamaguchi (JIRA)" <ji...@apache.org> on 2012/11/15 07:04:14 UTC

[jira] [Created] (CB-1859) camera.getPicture should use scaled photo data only when it's bigger than targetWidth / targetHeight

Yutaka Yamaguchi created CB-1859:
------------------------------------

             Summary: camera.getPicture should use scaled photo data only when it's bigger than targetWidth / targetHeight
                 Key: CB-1859
                 URL: https://issues.apache.org/jira/browse/CB-1859
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Android, iOS
    Affects Versions: 2.2.0
            Reporter: Yutaka Yamaguchi
            Assignee: Joe Bowser
            Priority: Minor


camera.getPicture always use scaled photo data even if it's smaller than targetWidth/targetHeigth.

I think it's better to use original one instead if so.

(I found the related stackoverflow question
http://stackoverflow.com/questions/13101255/phonegap-ios-camera-resizing-only-if-photo-bigger-then-targetheight-targetwi )

= steps to reproduce =
1. set targetWidth 800 in your script.
2. execute script and use camera.getPhoto function (use photo library)
3. use photo which size is smaller than 800px (e.g. 400px) in photo library.

= actual behavior =
return photo is scaled to 800px (doubled size of original photo)

= expected behavior =
return original photo

--
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] [Updated] (CB-1859) camera.getPicture should use scaled photo data only when it's bigger than targetWidth / targetHeight

Posted by "Yutaka Yamaguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yutaka Yamaguchi updated CB-1859:
---------------------------------

    Description: 
camera.getPicture always use scaled photo data even if it's smaller than targetWidth/targetHeigth.

I think it's better to use original one instead if so.

(I found the related stackoverflow question
http://stackoverflow.com/questions/13101255/phonegap-ios-camera-resizing-only-if-photo-bigger-then-targetheight-targetwi )

= steps to reproduce =
1. set targetWidth 800 in your script.
2. execute script and use camera.getPhoto function (use photo library)
3. use photo which size is smaller than 800px (e.g. 400px) in photo library.

= actual behavior =
return scaled photo to 800px (doubled size of original photo)

= expected behavior =
return original photo

  was:
camera.getPicture always use scaled photo data even if it's smaller than targetWidth/targetHeigth.

I think it's better to use original one instead if so.

(I found the related stackoverflow question
http://stackoverflow.com/questions/13101255/phonegap-ios-camera-resizing-only-if-photo-bigger-then-targetheight-targetwi )

= steps to reproduce =
1. set targetWidth 800 in your script.
2. execute script and use camera.getPhoto function (use photo library)
3. use photo which size is smaller than 800px (e.g. 400px) in photo library.

= actual behavior =
return photo is scaled to 800px (doubled size of original photo)

= expected behavior =
return original photo

    
> camera.getPicture should use scaled photo data only when it's bigger than targetWidth / targetHeight
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CB-1859
>                 URL: https://issues.apache.org/jira/browse/CB-1859
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, iOS
>    Affects Versions: 2.2.0
>            Reporter: Yutaka Yamaguchi
>            Assignee: Joe Bowser
>            Priority: Minor
>
> camera.getPicture always use scaled photo data even if it's smaller than targetWidth/targetHeigth.
> I think it's better to use original one instead if so.
> (I found the related stackoverflow question
> http://stackoverflow.com/questions/13101255/phonegap-ios-camera-resizing-only-if-photo-bigger-then-targetheight-targetwi )
> = steps to reproduce =
> 1. set targetWidth 800 in your script.
> 2. execute script and use camera.getPhoto function (use photo library)
> 3. use photo which size is smaller than 800px (e.g. 400px) in photo library.
> = actual behavior =
> return scaled photo to 800px (doubled size of original photo)
> = expected behavior =
> return original photo

--
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