fix normalisation formula (#5979)

This commit is contained in:
Peter Staev
2018-06-25 13:33:56 +03:00
committed by Alexander Vakrilov
parent f3714176d9
commit 67f9e060c6

View File

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