{"id":13776797,"url":"https://github.com/npomfret/react-native-image-tools","last_synced_at":"2025-12-29T05:18:21.610Z","repository":{"id":39229000,"uuid":"84964365","full_name":"npomfret/react-native-image-tools","owner":"npomfret","description":"Image editing software powered by Abode Creative SDK for iOS and Android.","archived":false,"fork":false,"pushed_at":"2019-05-22T08:24:38.000Z","size":67152,"stargazers_count":170,"open_issues_count":16,"forks_count":41,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-02-12T17:03:00.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npomfret.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-14T15:19:09.000Z","updated_at":"2024-02-12T17:03:00.760Z","dependencies_parsed_at":"2022-09-05T00:31:51.454Z","dependency_job_id":null,"html_url":"https://github.com/npomfret/react-native-image-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npomfret%2Freact-native-image-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npomfret%2Freact-native-image-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npomfret%2Freact-native-image-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npomfret%2Freact-native-image-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npomfret","download_url":"https://codeload.github.com/npomfret/react-native-image-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382785,"owners_count":20282007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:00:33.189Z","updated_at":"2025-12-29T05:18:16.588Z","avatar_url":"https://github.com/npomfret.png","language":"HTML","funding_links":[],"categories":["\u003ca name=\"Image-\u0026-Audio-\u0026-Video-\u0026-Docs:-Native-Modules\"\u003eImage, Audio, Video \u0026 Docs: Native Modules\u003c/a\u003e"],"sub_categories":[],"readme":"**Unfortunately Adobe has discontinued development and support of the Image Editor UI this project is discontinued.**\n\n# ~~react-native-image-tools~~\n\nInstall instructions [here](./docs/install.md).\n\nAn example app is [here](https://github.com/npomfret/rn-image-tools-example).\n\n\u003cimg src=\"docs/demo.gif\" width=\"350\"\u003e\n\n## API\n\n### _RNImageTools.openEditor(options)_\n\nOpens the Adobe Image Editor.  Returns a promise which when resolved contains a uri to the output image, or null if editing was cancelled.\n\n_options_ parameter:\n\n| name | description | default value | type |\n| :---: | :---: | :---: | :--- |\n| imageUri | the input image | n/a | `string` (see below)|\n| 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')_ |\n| quality | representing the JPEG compression % (Ignored for PNG) | 80 | `integer` (a value between _0_ and _100_) |\n| preserveMetadata (iOS only) | copies image metadata (exif tags) from the input image to the output image | true | `boolean` |\n| saveTo | determines where the output image will be saved | photos | `string` (_'photos'_ or _'file'_) |\n\nSupported `imageUri` formats include:\n * _path_ e.g. `/foo/bar/image.jpeg`\n * _file url_ e.g. `file:///foo/bar/image.jpeg`\n * _url_ e.g. `http://foo.com/bar/image.jpeg`\n * _asset-uri_ (iOS only) e.g. `assets-library://asset/asset.JPG?id=foo\u0026EXT=JPG`\n * _content-uri_ (android only) e.g. `content://media/external/images/foo/bar/JPEG`\n \n```javascript\n    import RNImageTools from \"react-native-image-tools\";\n\n    ...    \n\n    try {\n      const uri = await RNImageTools.openEditor({\n        imageUri,\n        outputFormat,\n        quality,\n        preserveMetadata,\n        saveTo\n      });\n    } catch (e) {\n      console.warn(\"error\", e);\n    }\n```\n\n### _RNImageTools.selectImage(options)_\n\nOpens 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.\n\n_options_ parameter:\n\n| name | description | default value | type |\n| :---: | :---: | :---: | :--- |\n| title | optional title (android only) | n/a | `string` |\n\n```javascript\n    import RNImageTools from \"react-native-image-tools\";\n\n    ...    \n\n    try {\n      const uri = await RNImageTools.selectImage({title});\n    } catch (e) {\n      console.warn(\"error\", e);\n    }\n```\n\n### _RNImageTools.imageMetadata(imageUri)_\n\nReturns a promise which when resolved returns object containing the image metadata.\n\n```javascript\n    import RNImageTools from \"react-native-image-tools\";\n\n    ...    \n\n    try {\n      const metadata = await RNImageTools.imageMetadata(imageUri);\n    } catch (e) {\n      console.warn(\"error\", e);\n    }\n```\n\n### Customizing\nsince i dont have much time to make the costumization work from js method. here some of configuration that u need to add / change in order to customize the image editor\n\nFork this project, then change some of file bellow\n\n```java\n// react-native-image-tools/android/src/main/java/com/pomocorp/rnimagetools/RNUmageToolsModule.java\n\n\nAdobeImageIntent.Builder builder = new AdobeImageIntent.Builder(reactContext)\n    .setData(imageUri)\n    .withToolList(new ToolsFactory.Tools[]{\n         // Just Comment or remove anything u dont need\n         CROP,\n         ORIENTATION,\n         ENHANCE,\n         TEXT,\n         DRAW,\n         MEME,\n         FOCUS,\n         VIGNETTE,\n         SHARPNESS,\n         BLUR,\n         COLOR,\n         EFFECTS,\n         ADJUST,\n         PERSPECTIVE,\n         REDEYE,\n         WHITEN,\n         BLEMISH,\n         SPLASH,\n         LIGHTING,\n         OVERLAYS,\n         FRAMES,\n         STICKERS,\n    })\n    ....\n```\n\n```\n//react-native-image-tools/ios/RNImageTools.xcodeproj/RNImageTools.m\n\n- (void) sendToEditor:(UIImage*)image {\n    // Just Comment or remove anything u dont need\n    [AdobeImageEditorCustomization setToolOrder:@[\n        kAdobeImageEditorEnhance,        /* Enhance */\n        kAdobeImageEditorEffects,        /* Effects */\n        kAdobeImageEditorStickers,       /* Stickers */\n        kAdobeImageEditorOrientation,    /* Orientation */\n        kAdobeImageEditorCrop,           /* Crop */\n        kAdobeImageEditorColorAdjust,    /* Color */\n        kAdobeImageEditorLightingAdjust, /* Lighting */\n        kAdobeImageEditorSharpness,      /* Sharpness */\n        kAdobeImageEditorDraw,           /* Draw */\n        kAdobeImageEditorText,           /* Text */\n        kAdobeImageEditorRedeye,         /* Redeye */\n        kAdobeImageEditorWhiten,         /* Whiten */\n        kAdobeImageEditorBlemish,        /* Blemish */\n        kAdobeImageEditorBlur,           /* Blur */\n        kAdobeImageEditorMeme,           /* Meme */\n        kAdobeImageEditorFrames,         /* Frames */\n        kAdobeImageEditorFocus,          /* TiltShift */\n        kAdobeImageEditorSplash,         /* ColorSplash */\n        kAdobeImageEditorOverlay,        /* Overlay */\n        kAdobeImageEditorVignette        /* Vignette */\n    ]];\n    ....\n}\n```\n\n```\n\"dependencies\": {\n    ....\n    \"react-native-image-tools\": \"git+https://github.com/\u003cyour-git-username\u003e/react-native-image-tools.git\",\n    ....\n}\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpomfret%2Freact-native-image-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpomfret%2Freact-native-image-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpomfret%2Freact-native-image-tools/lists"}