cordova-screenshot icon indicating copy to clipboard operation
cordova-screenshot copied to clipboard

Compression quality

Open c0d3r85 opened this issue 9 years ago • 2 comments

In iOS compressionQuality is a float number between 0.0 and 1.0 (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation), so you need to scale quality param in iOS

c0d3r85 avatar Feb 26 '16 04:02 c0d3r85

that's why we cannot change the quality of the image on IOS ? Looks like not working in my end.

numerized avatar Oct 01 '16 16:10 numerized

This is a bug in docs, you should pass quality from 0 to 1 -- anything above 1 is taken as 1. If you look at the code quality is passed as floatvalue

ramezrafla avatar Oct 20 '16 16:10 ramezrafla