Commit Graph

40 Commits

Author SHA1 Message Date
Jamie McDonald d8a549bb56 Don’t attempt to scale an image that could not be decoded 2015-11-20 15:23:47 +01:00
Jamie McDonald b532e0095a Cleaning 2015-09-09 11:20:56 +02:00
Jamie McDonald dfe8cd0724 Lint fixes 2015-09-08 22:15:47 +02:00
Jamie McDonald bafa75b42e Clear windowTranslucentStatus flag in case it’s set in the app theme
Fixes #162
2015-09-07 16:18:10 +02:00
Huxley Oosthuizen ad483ebf4a setResult on exception instead of finish 2015-07-27 12:21:42 +02:00
Jamie McDonald 9d654fa2b3 Remove Gingerbread support (in-memory crop) 2015-04-17 13:36:49 -04:00
Jamie McDonald d7a3ae2fb8 Resize after decodeRegionCrop for max size params 2015-02-13 16:30:17 +01:00
Jamie McDonald 3c2e3e6b99 Very slightly less weird interface to crop methods 2015-02-13 14:06:11 +01:00
Jamie McDonald 92c5f04038 Cleaning 2015-02-13 13:38:38 +01:00
Alex Black 7130917f4e Fallback to using ParcelFileDescriptor to support getting images from Google Drive 2015-01-22 22:35:02 -08:00
Jamie McDonald 3756e24ffa Move Log and reduce visibility 2015-01-09 15:58:43 +01:00
Jamie McDonald 5d5afcbe83 Updated error handling 2014-07-13 15:50:47 +02:00
Jamie McDonald 32f289d454 Use default image max if we can't get the texture size 2014-07-13 12:06:45 +02:00
Jamie McDonald 2b04e98ea4 Define a hard limit on image size
This maintains some level of performance when GL_MAX_TEXTURE_SIZE is huge (e.g. on a Genymotion emulator).
2014-06-22 15:02:15 +02:00
Jamie McDonald e0b8a19d2f A little cleanup & fix potential InputStream closing issue 2014-06-13 17:21:52 +02:00
Jamie McDonald 1a51706dbc Get rid of the m prefix. Yuck. 2014-06-13 16:11:33 +02:00
Jamie McDonald b4de574727 Formatting 2014-06-13 15:50:01 +02:00
Jamie McDonald 140bb030f2 Formatting [skip ci] 2014-06-13 15:41:25 +02:00
daisy1754 26d9257033 Scale large image when loading in accordance with OpenGL texture size listriction
Otherwise, the bitmap is just not displayed with logging warning like '[WARN] :   OpenGLRenderer: Bitmap too large to be uploaded into a texture'
2014-06-04 23:35:57 +09:00
Jamie McDonald 8d58d01465 Cleaning 2014-04-04 16:16:04 +02:00
Jamie McDonald 0d5d48d78f Support some basic customisation via theme 2014-03-21 00:07:35 +01:00
Jamie McDonald 6093f2832d Added option to display guides on thirds of the crop area
This is a bit like what the current Android gallery app crop selection does.
2014-03-20 01:24:40 +01:00
Jamie McDonald 645e8e2cfd Drop support for return data Bitmap & small refactors 2014-03-19 22:54:46 +01:00
Jamie McDonald 6a18e47aea A little formatting 2014-03-19 21:43:53 +01:00
Jamie McDonald 18db14cba7 Prefix resources to avoid clashes 2014-03-17 22:15:00 +01:00
Jamie McDonald 57972e7716 Formatting 2014-03-17 13:11:44 +01:00
Jamie McDonald 07c3ca8816 Refined and documented builder
Fixes #5
2014-03-16 18:13:44 +01:00
Jamie McDonald b769a2a461 Return errors with their own result code
No longer just returns the source image if we fail to crop. Fixes #4
2014-03-16 13:25:07 +01:00
Jamie McDonald 6959d31d5a Added support for returning crops in Intent
This is only useful if the max crop size is tiny...
2014-03-16 12:23:18 +01:00
Jamie McDonald 2247c2a769 Moving return options to builder 2014-03-15 12:53:20 +01:00
Jamie McDonald 2fa1be3329 Moved Exif helpers to utils 2014-03-15 00:13:31 +01:00
Jamie McDonald daff569acf Formatting 2014-03-14 23:15:44 +01:00
Jamie McDonald a001ecad91 Fix invalid return value for Exif rotation 2014-03-13 19:11:57 +01:00
Jamie McDonald ce3aa7be3c Builder for crop intents!
This also includes a helper for starting an image picker intent.
2014-03-12 22:34:14 +01:00
Jamie McDonald f148844ef6 Get rid of measurement in absolute pixels 2014-03-12 19:23:23 +01:00
Jamie McDonald 37dad2d5a3 Background texture. Working on example. 2014-03-12 18:14:16 +01:00
Jamie McDonald cca91908c2 Removed unused circle crop code. Some cleaning. 2014-03-12 16:47:24 +01:00
Jamie McDonald 349fd35bfb Fresh new done/cancel button styling 2014-03-12 16:36:47 +01:00
Jamie McDonald eb3b898767 Removed annotation dependency to make build work 2014-03-12 14:21:52 +01:00
Jamie McDonald b34e761d12 Imported android-cropimage fork 2014-03-12 13:32:13 +01:00