mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
Fixed hardcoded jpegQuality on android when saving to temp and disk
This commit is contained in:
parent
59a0b44c71
commit
e11ed2fb52
@ -618,7 +618,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mutableImage.writeDataToFile(pictureFile, options, 85);
|
mutableImage.writeDataToFile(pictureFile, options, jpegQualityPercent);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
promise.reject("failed to save image file", e);
|
promise.reject("failed to save image file", e);
|
||||||
return;
|
return;
|
||||||
@ -636,7 +636,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mutableImage.writeDataToFile(tempFile, options, 85);
|
mutableImage.writeDataToFile(tempFile, options, jpegQualityPercent);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
promise.reject("failed to save image file", e);
|
promise.reject("failed to save image file", e);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user