Skip to content

mmtou/compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

图片压缩

通过源文件路径

compressImg(String sourceFilePath, Float quality, Integer width, Integer height);
  • sourceFilePath是源文件路径 required
  • quality是压缩的质量,值在0到1之间
  • width是压缩后的width
  • height是压缩后的height

通过源文件

compressImg(File sourceFile, Float quality, Integer width, Integer height);
  • sourceFile是源文件 required

通过源文件流和文件类型

compressImg(InputStream srouceInput, String formatName, Float quality, Integer width, Integer height);
  • srouceInput是源文件流 required
  • formatName是源文件后缀 required

其他文件压缩

待完善

About

各种文件的压缩

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages