Sunzxyong / Tiny

an image compression framework.(一个高保真、高压缩比的图片压缩框架)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

批量压缩这里能不能支持list

liguangze opened this issue · comments

Tiny.FileCompressOptions options = new Tiny.FileCompressOptions();
Tiny.getInstance().source("").batchAsFile().withOptions(options).batchCompress(new FileBatchCallback() {
@OverRide
public void callback(boolean isSuccess, String[] outfile) {
//return the batch compressed file path
}
});

因为你的demo里面写的是数组,长度都固定了,我现在不知道用户要传几张,只能传集合,

@liguangze 可以集合转化为数组传进来