Sunzxyong / Tiny

an image compression framework.(一个高保真、高压缩比的图片压缩框架)
Apache License 2.0
2.61k stars 343 forks source link

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

Open liguangze opened 6 years ago

liguangze commented 6 years ago

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里面写的是数组,长度都固定了,我现在不知道用户要传几张,只能传集合,

Sunzxyong commented 6 years ago

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