incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-54) Feature request: ability to downsize pictures with camera.getPicture (no crop)
Date Mon, 28 Nov 2011 22:33:40 GMT


Shazron Abdullah commented on CB-54:


I think it would be better to add new parameters to the settings map from JavaScript as suggested
by patdenice. We have the same issue with the current version of PhoneGap. We are primarily
interested in the Android version.


I read through the iOS and Android source code for the camera module. On Android, you can
specify just one of the target size parameters and if you are getting the data in base64 encoded
format, you will get a scaled down image with no cropping. In other words, if your camera
module is 1024x768 (4:3) and you specify a targetWidth or 240, you will get a 240x180 result
in landscape and a 240x320 result in portrait orientation. It's probably not exactly what
you were hoping for, but it may be good enough (it's probably good enough for us).

On iOS, if either the target width or height is missing, the other one is also ignored, so
this will not work.
> Feature request: ability to downsize pictures with camera.getPicture (no crop)
> ------------------------------------------------------------------------------
>                 Key: CB-54
>                 URL:
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
> reported at:
> by:
> Hi,
> We're working on a mobile application using phonegap. The application is designed to
upload photos from the smartphone/tablet to a Piwigo gallery. Piwigo is a popular open source
web application to create photo galleries. The application "Piwigo for iOS/Android" is nearly
complete, we just need the ability to downsize photos before upload. Unfortunately, targetWidth
and targetHeight parameters on camera.getPicture method are designed to crop the photo, which
is what we're seeking. Would it be possible to add maxWidth/maxHeight parameters and resize
algorithm ?
> Thanks.
> P@t
> Piwigo Team.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message