From 15847e37d80290c99798b26f26f9ca39aa3d9f6c Mon Sep 17 00:00:00 2001 From: lzCodeGarden <3159933846@qq.com> Date: Mon, 18 Mar 2024 17:04:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlinux=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=88=AA=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/jyjz/xiaoyao/ocr/util/ImageUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/util/ImageUtils.java b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/util/ImageUtils.java index 16739c8..ff0d9fc 100644 --- a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/util/ImageUtils.java +++ b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/util/ImageUtils.java @@ -19,7 +19,7 @@ public class ImageUtils { if(newWidth==null){ newWidth=182; } - String directoryPath = inputImagePath.substring(0, inputImagePath.lastIndexOf("\\") + 1); + String directoryPath = inputImagePath.substring(0, inputImagePath.lastIndexOf("/") + 1); File inputFile = new File(inputImagePath); String outputImagePath = directoryPath+ "thumbnail_" + inputFile.getName(); BufferedImage bufferedImage = Thumbnails.of(inputFile).scale(1).asBufferedImage();