shikeying
2024-04-08 8c3f7605718d7b5b3f3fa6de8922c5ee132b0890
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.walker.infrastructure;
 
import com.walker.infrastructure.utils.ImageUtils;
import org.junit.Test;
 
public class TestImage {
 
    @Test
    public void scaleImage(){
//        String filePath = "F:/app_ocr_demo/ocr_oil_012.jpg";
        String filePath = "F:/app_ocr_demo/ocr_oil_013_s.jpg";
//        String destPath = FileUtils.getThumbNailsName(filePath);
        String destPath = ImageUtils.scaleImage4Jpg(filePath, 800);
        System.out.println("压缩后文件路径 = " + destPath);
    }
}