mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix normalisation formula (#5979)
This commit is contained in:
committed by
Alexander Vakrilov
parent
f3714176d9
commit
67f9e060c6
@@ -131,7 +131,7 @@ export class ImageSource implements ImageSourceDefinition {
|
||||
}
|
||||
|
||||
if (quality) {
|
||||
quality = quality - 0 / (100 - 0); // Normalize quality on a scale of 0 to 1
|
||||
quality = (quality - 0) / (100 - 0); // Normalize quality on a scale of 0 to 1
|
||||
}
|
||||
|
||||
const data = getImageData(this.ios, format, quality);
|
||||
@@ -149,7 +149,7 @@ export class ImageSource implements ImageSourceDefinition {
|
||||
}
|
||||
|
||||
if (quality) {
|
||||
quality = quality - 0 / (100 - 0); // Normalize quality on a scale of 0 to 1
|
||||
quality = (quality - 0) / (100 - 0); // Normalize quality on a scale of 0 to 1
|
||||
}
|
||||
|
||||
const data = getImageData(this.ios, format, quality);
|
||||
|
||||
Reference in New Issue
Block a user