Comments (9)
Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT
With http://groupcomplete.com, we resize captured images so that they fit within 1024x768.
This was a necessity for us since shipping around 2-3Mb+ images is impractical. We
also downgraded the image quality somewhat but not enough to impact overall image integrity.
Attached is a patch against 2a190d8613ca that does just this. It works on 2.2+ (might
work on 2.1 but I have not verified). The only caveat is that phones with a smaller
app heap might run out of memory resizing larger photos.
Turning this into a preference is left as an exercise for the reader.
For maximum flexibility, I would suggest implementing this as a set of form image attributes
that would "request" maximum image dimensions as well as quality level.
If the device image capture preferences are set to "auto" the form hints would be used.
Otherwise, the device image capture preferences would override and supply an image
of a different dimension and quality.
The form hints could be displayed on the image capture screen with easy access to adjust
the image capture settings on a per-image basis or perhaps simply redirect to the device
image capture preferences.
Actually, this is useful enough that we might end up implementing it ourselves.
Reported by [email protected]
on 2011-09-13 20:29:04
- _Attachment: [capture_images_at_1024x768_75quality.diff](https://storage.googleapis.com/google-code-attachments/opendatakit/issue-308/comment-1/capture_images_at_1024x768_75quality.diff)_
from collect.
Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT
Reported by mitchellsundt
on 2011-10-21 20:24:28
- Labels added: Collect
from collect.
Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT
Reported by yanokwa
on 2012-05-25 15:46:40
from collect.
Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT
Reported by yanokwa
on 2012-05-25 20:13:11
from collect.
Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT
The Android devices I checked all have some way to resize the picture size inside the
Camera app itself, so I think that's the best way to go.
Reported by [email protected]
on 2013-03-20 19:16:22
from collect.
This is tricky to handle on the server side because GAE is broken. i.e.,
https://code.google.com/p/googleappengine/issues/detail?id=2036
This makes the server-side code very very tricky to get right. The 2.0 protocol handles this.
from collect.
And the newer usage would use compressed chunked encodings. No idea how GAE screws those up.
from collect.
getodk/xforms-spec#79 has a discussion on implementing this at the ODK XForms spec level.
from collect.
This is ready to build as an orx:max-pixels
attributes for images.
from collect.
Related Issues (20)
- Arrows in Input method in GeoShape and GeoTrace overlap "Cancel” button in the landscape view HOT 1
- "Form updates available" notication flow HOT 2
- Display message on end screen when autosend is enabled and saving drafts is disabled HOT 2
- Text field in field list snaps under keyboard when tapped to focus HOT 14
- Display preview of media in summary (e.g. images, video, audio)
- Using a different camera app to record a video in video widget which is on a field-list crashes the app on Android 10 Redmi 9T HOT 5
- The list of question is scrolled when a user closes the keybord
- Entity updates from the server HOT 1
- Adjusting max width of buttons HOT 7
- Leaks accross the ODK Collect application HOT 1
- Deleting a recorded audio in Audio widget on a field-list results in an error and closing the form
- When there is a text field question on a field-list with other types of question the cursor stay at the field question while filling other non-field question
- In Fast external itemsets (db-driven) form answers depending on another question don’t get updated after changing the first answer HOT 2
- Some QR codes with settings can't be recognized
- NPE in FormFillingActivity.widgetValueChanged
- NPE when loading save point HOT 9
- When there are 2 audio widgets on a field-list the sound which is playing has a malfunctioning seekbar when another sound recording starts. HOT 2
- Entity follow up work HOT 2
- Fix `FieldListUpdateTest#listOfQuestionsShouldNotBeScrolledToTheLastEditedQuestionAfterClickingOnAQuestion`
- Implement savepoints migration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collect.