shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
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);
    }
}