mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
@@ -26,6 +26,15 @@ public class ImgTest {
|
||||
Img.from(FileUtil.file("f:/test/4347273249269e3fb272341acc42d4e.jpg")).setQuality(0.8).write(FileUtil.file("f:/test/test_dest.jpg"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void compressWithBackgroundColorTest() {
|
||||
Img.from(FileUtil.file("D:/test/before_compress.png"))
|
||||
.setBackgroundColor(Color.WHITE)
|
||||
.setQuality(0.8)
|
||||
.write(FileUtil.file("D:/test/after_compress.jpg"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void writeTest() {
|
||||
|
Reference in New Issue
Block a user