Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.0
-
None
-
Android, iOS
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
Attachments
Issue Links
- is related to
-
CB-5942 targetWidth and targetHeight are not being interpreted consistently across platforms
- Open
- links to