Commit Graph

19 Commits

Author SHA1 Message Date
Abe Botros aef2a9c7d8 Minor Android fixes for empty/failed return paths (#67)
- Throw exception instead of returning null sourceImage, which avoids
  returning pseudo-empty "file:" string to Javascript on failure
- Use constant strings for checking path prefixes
- Cleanup of conditional statements for checking path prefixes
- Additional try-catch statements, contributing more-fine-grained
  error messages

Other
- Updated .gitignore to latest React Native template
- Updated Android gradle scripts
- Updated package.json's in root and in example to point to
  correct react/react-native versions, and to use local code
  for this library directly in the example app
2017-02-10 11:21:55 +01:00
Chris Fogelklou 8a485bf0a9 Add support for base64 formatted Uri strings on Android. (#47) 2016-09-22 08:18:06 +02:00
Andrew Shini ab1a39bf54 Always rotate the image with the proper up orientation on Android (#42) 2016-09-04 10:20:00 +02:00
Florian Rival edad5c3064 refactor(android): Refactor various part of ImageResizer 2016-08-21 20:36:41 +02:00
Florian Rival 442627bd37 refactor(android): Remove useless arguments, fix typo and style 2016-08-21 20:07:05 +02:00
npomfret 83bb4bbd21 reduced memory footprint by using inSampleSize 2016-08-18 12:02:57 +01:00
zhi f24bd5e425 Fix memory leaks and don't rotate unless necessary on Android (#25)
* fixed memory leakes

* rotate only if necessary
2016-08-03 16:02:59 +02:00
Kristoffer K 3b8d1c1940 Output path fix + orientation fix (#20)
* rotateImage function rewrite

* fix recycle

* output path fix

* only pass bitmap to functions

* Orientation fix
2016-07-17 21:43:11 +02:00
superAndrew af9f77d965 Add outputPath to options (#16)
* Add outputPath for android

* Add outputPath for ios

* Update readme

* Move outputPath to the end

* Update readme
2016-06-30 19:07:42 +02:00
Florian Rival b664dfe510 Fix portrait image resizing on Android 2016-06-14 12:22:49 +02:00
timzaak 8781e80507 fix android build fail 2016-05-16 15:25:47 +08:00
timzaak 5f0bb88cef fix things @Almouro has mentioned, thanks @Almouro 2016-05-14 11:18:48 +08:00
timzaak 99563c8b32 change build.gradle, make it easey to run 2016-05-12 11:29:04 +08:00
timzaak cdde0a4d0a reslove #7 2016-05-11 22:34:42 +08:00
Florian Rival f3a1cab919 Fix exception when trying to resize a file that can't be open on Android 2015-12-10 17:50:12 +01:00
Florian Rival 5d187494a3 Catch OutOfMemory exceptions on Android 2015-12-10 17:34:12 +01:00
Florian Rival 6f5ff49c68 Fix resizing on Android 2015-12-07 10:46:40 +01:00
Florian Rival e9b1dec7b0 Add optional rotation argument on Android 2015-12-06 18:03:33 +01:00
Florian Rival 0d4db6341f Initial commit 2015-12-02 22:02:19 +01:00