Skip to content

Commit

Permalink
fixed scaling on capturePhoto on android
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hannah committed Apr 27, 2024
1 parent ae9d353 commit f76b61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/capture/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void run() {
if(scale != null) {
try {

String path = url.substring(0, url.indexOf(".")) + "s" + url.substring(url.indexOf("."));
String path = url.substring(0, url.lastIndexOf(".")) + "s" + url.substring(url.lastIndexOf("."));
OutputStream os = FileSystemStorage.getInstance().openOutputStream(path);
scale.save(url, os, ImageIO.FORMAT_JPEG, targetWidth, targetHeight, 1);
Util.cleanup(os);
Expand Down

0 comments on commit f76b61c

Please sign in to comment.