Skip to content

Commit

Permalink
Fixed hardcoded jpegQuality on android when saving to temp and disk
Browse files Browse the repository at this point in the history
  • Loading branch information
pettersolberg88 committed Nov 8, 2017
1 parent 59a0b44 commit e11ed2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ private synchronized void processImage(MutableImage mutableImage, ReadableMap op
}

try {
mutableImage.writeDataToFile(pictureFile, options, 85);
mutableImage.writeDataToFile(pictureFile, options, jpegQualityPercent);
} catch (IOException e) {
promise.reject("failed to save image file", e);
return;
Expand All @@ -636,7 +636,7 @@ private synchronized void processImage(MutableImage mutableImage, ReadableMap op
}

try {
mutableImage.writeDataToFile(tempFile, options, 85);
mutableImage.writeDataToFile(tempFile, options, jpegQualityPercent);
} catch (IOException e) {
promise.reject("failed to save image file", e);
return;
Expand Down

0 comments on commit e11ed2f

Please sign in to comment.