Comments (8)
The new version 0.1.4
fixed this problem, and I'll optimize the API to support pass quality at the next version
from react-native-image-marker.
@sunkibaek thanks for your suggestion, I'll check this later and try to fix it
from react-native-image-marker.
Might the line below be the reason?
Since the documentation says that the quality is the amount between 0 and 1 and we are passing 0.1 effectively.
https://developer.apple.com/documentation/uikit/1624115-uiimagejpegrepresentation
from react-native-image-marker.
It's definitely the line mentioned by @sunkibaek. Since I'am not a Objective C/native iOS developer I didn't find out, where the value of "quality" is defined or generated but I changed the line from
NSData* data = UIImageJPEGRepresentation(image, quality / 100.0);
to
NSData* data = UIImageJPEGRepresentation(image, 1.0);
quality/100.0 seems like there was planned a possibility to pass the quality to the function.
from react-native-image-marker.
Sorry for the late response. I'll check it and fix this issue
from react-native-image-marker.
@JimmyDaddy thank you for the updates!
Am I right that there are two more places to update the code from 1
to 100
?
https://github.com/JimmyDaddy/react-native-image-marker/blob/master/ios/RCTImageMarker/RCTImageMarker.m#L364
https://github.com/JimmyDaddy/react-native-image-marker/blob/master/ios/RCTImageMarker/RCTImageMarker.m#L409
Thanks!
from react-native-image-marker.
T_T, I'm sorry for this mistake, I'm too busy recently.
from react-native-image-marker.
Hello, 0.2.0 may be fixed this problem, and there are some changes of usage
from react-native-image-marker.
Related Issues (20)
- Fresco 3.1.3 compatibility issues with RN 0.73.0, react-native-image-marker:compileDebugKotlin FAILED HOT 3
- Please add drag & drop feature for image watermark HOT 1
- Same watermark image is behaving differently on ANDROID and IOS when use given position enum HOT 3
- Build error HOT 3
- Crash on ios when running markText HOT 4
- > Yes, It is 8.0.1. Should I upgrade it? HOT 8
- Marker.markText option is not visible HOT 3
- fontName not work (ANDROID) HOT 3
- High resolution image is rotated on ios after watermark HOT 5
- Generates inconsistent text size across different devices HOT 5
- [feature] expo plugin
- Expo project build failed with react-native-image-marker HOT 2
- The X and Y of watermarkImages not work HOT 2
- local image starting with file:// won't work HOT 3
- Error adding image icon watermark: [Error: please set image!]
- Unable to find getSignatureValue(path); HOT 1
- add multiple icons and texts with a single function HOT 3
- Rotate image after adding watermark HOT 4
- 1.1.15 version had some issues in Android build HOT 13
- 不同图片,生成水印大小不同? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-image-marker.