Giter Club home page Giter Club logo

Comments (9)

getodk-bot avatar getodk-bot commented on June 8, 2024

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.

getodk-bot avatar getodk-bot commented on June 8, 2024

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.

getodk-bot avatar getodk-bot commented on June 8, 2024

Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT


Reported by yanokwa on 2012-05-25 15:46:40

from collect.

getodk-bot avatar getodk-bot commented on June 8, 2024

Comment by mitchellsundt
Thursday Jul 09, 2015 at 18:11 GMT


Reported by yanokwa on 2012-05-25 20:13:11

from collect.

getodk-bot avatar getodk-bot commented on June 8, 2024

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.

mitchellsundt avatar mitchellsundt commented on June 8, 2024

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.

mitchellsundt avatar mitchellsundt commented on June 8, 2024

And the newer usage would use compressed chunked encodings. No idea how GAE screws those up.

from collect.

lognaturel avatar lognaturel commented on June 8, 2024

getodk/xforms-spec#79 has a discussion on implementing this at the ODK XForms spec level.

from collect.

lognaturel avatar lognaturel commented on June 8, 2024

This is ready to build as an orx:max-pixels attributes for images.

from collect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.