Gathering detailed insights and metrics for @jp928/react-native-image-tools
Gathering detailed insights and metrics for @jp928/react-native-image-tools
Gathering detailed insights and metrics for @jp928/react-native-image-tools
Gathering detailed insights and metrics for @jp928/react-native-image-tools
npm install @jp928/react-native-image-tools
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
132 Commits
2 Watching
1 Branches
1 Contributors
Updated on 20 Jun 2024
Objective-C (48.77%)
Java (43.12%)
C# (6.72%)
Ruby (1.16%)
JavaScript (0.22%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
100%
8
Compared to previous week
Last month
300%
16
Compared to previous month
Last year
-42.3%
139
Compared to previous year
No dependencies detected.
Install instructions here.
An example app is here.
Opens the Adobe Image Editor. Returns a promise which when resolved contains a uri to the output image, or null if editing was cancelled.
options parameter:
name | description | default value | type |
---|---|---|---|
imageUri | the input image | n/a | string (see below) |
outputFormat | the image type, must correspond to the input image type (generating PNG from JPEG or vider-vesa is not supported) | JPEG | string (either 'JPEG' or 'PNG') |
quality | representing the JPEG compression % (Ignored for PNG) | 80 | integer (a value between 0 and 100) |
preserveMetadata (iOS only) | copies image metadata (exif tags) from the input image to the output image | true | boolean |
saveTo | determines where the output image will be saved | photos | string ('photos' or 'file') |
Supported imageUri
formats include:
/foo/bar/image.jpeg
file:///foo/bar/image.jpeg
http://foo.com/bar/image.jpeg
assets-library://asset/asset.JPG?id=foo&EXT=JPG
content://media/external/images/foo/bar/JPEG
1 import RNImageTools from "react-native-image-tools"; 2 3 ... 4 5 try { 6 const uri = await RNImageTools.openEditor({ 7 imageUri, 8 outputFormat, 9 quality, 10 preserveMetadata, 11 saveTo 12 }); 13 } catch (e) { 14 console.warn("error", e); 15 }
Opens the native image picker dialog. Returns a promise which when resolved returns an object containing the uri to the chosen image as well as some other useful information, or null if cancelled.
options parameter:
name | description | default value | type |
---|---|---|---|
title | optional title (android only) | n/a | string |
1 import RNImageTools from "react-native-image-tools"; 2 3 ... 4 5 try { 6 const uri = await RNImageTools.selectImage({title}); 7 } catch (e) { 8 console.warn("error", e); 9 }
Returns a promise which when resolved returns object containing the image metadata.
1 import RNImageTools from "react-native-image-tools"; 2 3 ... 4 5 try { 6 const metadata = await RNImageTools.imageMetadata(imageUri); 7 } catch (e) { 8 console.warn("error", e); 9 }
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More