{"repo":"guhungry/react-native-photo-manipulator","free":true,"listed":false,"github":"https://github.com/guhungry/react-native-photo-manipulator","clone":"git clone https://github.com/guhungry/react-native-photo-manipulator.git","description":"React Native Image Processing API to edit photo programmatically for Android and iOS. It features print text, overlay on another image (add watermark), resize, crop, flip, rotate and optimize image size then convert file format to jpeg or png","language":"TypeScript","stars":390,"topics":["react-native","image-processing","image-manipulation"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React Native Photo Manipulator React Native Image Processing API to edit photo programmatically for Android and iOS. demo.webm Platform Supported Framework Android iOS ----------------------------- --------- ----- React Native ✔️ ✔️ Expo with development build ✔️ ✔️ Expo Go ❌ ❌ Getting started For react native 0.60 and above (or) For react native 0.59 and below Please read Get Started Guide For Expo with development build (or) Usage Import library with API Methods: crop() optimize() flipImage() rotateImage() overlayImage() printText() batch() Types: ImageSource PhotoBatchOperations PhotoBatchOverlay PhotoBatchPrintText PhotoBatchFlip PhotoBatchRotate FlipMode RotationMode Point Rect Size TextAlign TextDirection TextOptions Method Crop and resize Crop image with cropRegion and resize to targetSize if specified Signature Parameter Type Required Description --------------- ----------------------------------------- ------------ ---------------------------------------------- image ImageSource Yes The image cropRegion Rect Yes The region of image to be cropped targetSize Size No The target size of result image mimeType 'image/jpeg', 'image/png' No Output file format Returns Promise with image path in cache directory Example Optimize Save result image with specified quality between 0 - 100 in jpeg format Signature Parameter Type Required Description --------------- ----------------------------------------- ------------ ---------------------------------------------- image ImageSource","default_branch":null,"files":null,"tree":[],"storefront":"/r/guhungry","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/guhungry/react-native-photo-manipulator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}