Comments (1)
这是因为缩略图默认保存为jpg,可以尝试改为png,但是png的体积没有jpg小。
因为图片处理使用的是 https://github.com/coobird/thumbnailator 你也可以自己操作缩略图
fileStorageService.of(file)
.image(img -> img.size(1000,1000)) //将图片大小调整到 1000*1000
.thumbnail(th -> th.size(200,200)) //再生成一张 200*200 的缩略图(这里操作缩略图)
.upload();
from x-file-storage.
Related Issues (20)
- 文件分片和断点续传有吗? HOT 5
- 上传文件后生成的fileInfo.url没有拼接bucket-name HOT 1
- 可以支持或自定义扩展对象存储其他功能吗,比如copy ? HOT 2
- 请问一下,当前版本支持jdk17吗? HOT 1
- 图片压缩导致内存溢出 HOT 2
- 上次多个文件有没有事务问题 HOT 6
- 请问上传功能里面同时也集成了保存的功能,如果上传成功了,保存这时候失败了,想回滚,有什么方案吗? HOT 7
- 使用S3通过MultipartFile上传文件出现com.amazonaws.ResetException异常 HOT 11
- fastdfs 还不支持 HOT 2
- 项目是Spring Boot 3+的版本支持吗
- X File Storage 使用公司及组织登记
- spring-boot-devtools 自动重启报错 HOT 5
- 请问支持根据文件名,直接做下载或者预签名 URL嘛 HOT 2
- 请问现在支持分块上传吗? HOT 2
- LocalPlusFileStorage 没有path-patterns 字段,无法读取path-patterns参数 HOT 1
- HttpServletRequest 方式上传文件报错。 HOT 4
- 请问一下能不能只保留缩略图? HOT 2
- 脱离 SpringBoot 单独使用的话文件适配器缺少MultipartFileWrapper类型文件 HOT 2
- 上传后提示删除文件报错 HOT 2
- AmazonS3通信协议配置支持 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-file-storage.