gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 167 forks source link

Compression quality #78

Open c0d3r85 opened 8 years ago

c0d3r85 commented 8 years ago

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

numerized commented 8 years ago

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

ramezrafla commented 8 years ago

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