Coder Social home page Coder Social logo

Comments (8)

JimmyDaddy avatar JimmyDaddy commented on June 14, 2024 3

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.

JimmyDaddy avatar JimmyDaddy commented on June 14, 2024 2

@sunkibaek thanks for your suggestion, I'll check this later and try to fix it

from react-native-image-marker.

sunkibaek avatar sunkibaek commented on June 14, 2024 1

@JimmyDaddy

Might the line below be the reason?

https://github.com/JimmyDaddy/react-native-image-marker/blob/master/ios/RCTImageMarker/RCTImageMarker.m#L53

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.

richardkarsten avatar richardkarsten commented on June 14, 2024 1

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);

Result:
quality

quality/100.0 seems like there was planned a possibility to pass the quality to the function.

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 14, 2024

Sorry for the late response. I'll check it and fix this issue

from react-native-image-marker.

Andrfas avatar Andrfas commented on June 14, 2024

@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.

JimmyDaddy avatar JimmyDaddy commented on June 14, 2024

T_T, I'm sorry for this mistake, I'm too busy recently.

from react-native-image-marker.

JimmyDaddy avatar JimmyDaddy commented on June 14, 2024

Hello, 0.2.0 may be fixed this problem, and there are some changes of usage

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.