shikeying
2024-05-08 19ab3a8c760fa5e7e6cfab1b2ff97c187589efae
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);
    }
}