[英]Image manipulation in React Native?
I need to create a simple mobile app in React Native for manipulate images from the gallery and the camera.我需要在 React Native 中创建一个简单的移动应用程序来操作图库和相机中的图像。 I searched it everywhere, but didn't found any proper solution for this, just libraries for cropping/rotating/etc.
我到处搜索,但没有找到任何合适的解决方案,只是用于裁剪/旋转/等的库。
I only want to put own filter on pictures (like a simple national flag with opacity).我只想在图片上添加自己的过滤器(比如不透明的简单国旗)。
Is there any library for bare/expo RN to edit image pixels, or is there any solution to convert an image to a bitmap then convert back to an image and save it?是否有任何用于 bare/expo RN 的库来编辑图像像素,或者是否有任何解决方案可以将图像转换为 bitmap 然后转换回图像并保存?
Rotating, flipping (mirroring), resizing, and cropping are all options available in this package: @oguzhnatly/react-native-image-manipulator .旋转、翻转(镜像)、调整大小和裁剪都是此 package 中可用的选项: @oguzhnatly/react-native-image-manipulator 。 You can manipulate the image supplied by URI.
您可以操作 URI 提供的图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.