Coder Social home page Coder Social logo

Comments (7)

JimmyDaddy avatar JimmyDaddy commented on June 7, 2024

好的,按理说应该可以做到相册编辑,精度调整我需要再看看,我会在有时间的情况下满足这个功能,谢谢你的使用哈

from react-native-image-marker.

koukouzaki avatar koukouzaki commented on June 7, 2024

有解决办法吗?

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 7, 2024

关于图片保存的问题,我想你可以使用第三方组件保存到相册,参考这里

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 7, 2024

读取相册文件可以使用第三方组件如(react-native-image-picker)[https://github.com/react-community/react-native-image-picker]来达到你的目的

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 7, 2024

@koukouzaki 不知道你的图片精度调整是怎样的需求能详细描述一下吗?

from react-native-image-marker.

koukouzaki avatar koukouzaki commented on June 7, 2024

@JimmyDaddy 嗯,谢谢你的推荐,之前用了React-native自带的CameraRoll保存图片到了相册,现在每拍一次,相册会同时存在两张图,一张没水印原始的,一张有水印后来的。现在项目里的问题是如何删除第一张拍的图。^-^
图片精度的事是由于拍好的水印图里,字有点虚,然后我看了你之前那个issue里提到的故意降低图片质量来保证一些东西,所以有这么一说。
在翻看你的源码,看到有提到quality,但是我本身并不会原生开发,所以不是很懂~~

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 7, 2024

@koukouzaki 我个人觉得你打好水印以后的图片应该是一张新的图片了,而原来的图片应该保留下来,不应该删除掉吧。。。
精度问题是因为Android手机在加载bitmap时图片过大可能出现内存溢出的问题(OOM),所以我故意降低了图片质量防止Android闪退,在IOS上不会降低图片质量,这个我后续想想如何优化,最近项目比较紧所以没时间来做,不好意思,你要是有好的建议欢迎提PR

from react-native-image-marker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.