incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/CB-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158870#comment-13158870
] 

Shazron Abdullah commented on CB-54:
------------------------------------

by: https://github.com/jmunkki

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.

by: https://github.com/jmunkki

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: https://issues.apache.org/jira/browse/CB-54
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/287
> by: https://github.com/patdenice
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message