react-native-image-resizer
react-native-image-resizer copied to clipboard
🗻 Resize local images with React Native
This commit fixes some errors that may occur if compileSdkVersion on base project is different from the version (that is hardcoded) on `android/build.gradle` of this package
I need to use this library to resize pictures taken on camera. The response uri shows that the end result is located in the same directory with the original image....
First of all thank you for component. It works as expected. I wonder if it is possible to resize image withour preserving pixel ratio. Assume that I want to keep...
Also, provide the resize dimensions in the return data
on iOS : can't retrieve from rct-image-store://0 any ideas how to fix that ?
I just wondering that when I use lint, I found the error for this. Resizer works fine, unless this one, how can we fix it for lint staged ?
I used the exemple in the demo and want to save the resized file I'm new to mobile developpement. what to put in the "outputPath" ? resize() { let outputPath...
Updated the `generateFilePath()` method to accept paths on cache directory. It also generate new files on documents directory, to be consistent with the rest of the method behavior. Discussion: #90
`image` is defined and a valid base64 image data. ``` ImageResizer.createResizedImage(`data:image/jpeg${image}`, 800, 600, 'JPEG', 80).then( uri => { }).catch( err => Alert.alert(JSON.stringify(err))) ``` When I run this, it retuns returns...
I added the parameter outputImageName, on method createResizedImage to allow changing the name of the resized image. Android only.