Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大于一定体积时自动压缩 #40

Closed
benx1n opened this issue Dec 29, 2019 · 10 comments
Closed

大于一定体积时自动压缩 #40

benx1n opened this issue Dec 29, 2019 · 10 comments
Labels
enhancement New feature or request

Comments

@benx1n
Copy link

benx1n commented Dec 29, 2019

功能描述
希望可以添加图片大于一定阈值时自动压缩发送,和现有的全部压缩发送区分开

理由
启用反和谐后经常出现无法发送图片,查看了酷Q日志后可能原因是因为图片过大?(基本都是大于4M)
Snipaste_2019-12-29_18-16-13

@Tsuk1ko Tsuk1ko added the enhancement New feature or request label Dec 29, 2019
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Dec 29, 2019

确定是图片过大引起的么,启用 size1200 的话就一定不会出现这种情况?

@benx1n
Copy link
Author

benx1n commented Dec 29, 2019

是的,启动size1200就不会出现
而且统计了会出现这种报错的图片都是大于4M的
还有一个问题就是启用反和谐后响应会变慢是正常情况吗?

@shitianshiwa
Copy link

这个issues大概可以回答为什么需要压缩图片文件体积
使用CQ码发图片的时候图片大小不能超过4M
kyubotics/coolq-http-api#231

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Dec 30, 2019

@shitianshiwa 了解了

因为反和谐用 canvas 处理了图片,比直接发慢是肯定的,我没有实际统计过处理耗时,在开 size1200 的情况下体感没有多大区别

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jan 15, 2020

@shitianshiwa v2.11.1 实装了

@shitianshiwa
Copy link

@shitianshiwa v2.11.1 实装了

了解

@benx1n
Copy link
Author

benx1n commented Jan 15, 2020

收到 那我关闭issue了

@benx1n benx1n closed this as completed Jan 15, 2020
@benx1n
Copy link
Author

benx1n commented Jan 15, 2020

更新后问题依然存在= =

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jan 15, 2020

@shitianshiwa @benx1n 我傻了,功能写好了结果没去用(

已经修复,再拉下最新代码

@benx1n
Copy link
Author

benx1n commented Jan 15, 2020

@shitianshiwa @benx1n 我傻了,功能写好了结果没去用(

已经修复,再拉下最新代码

收到,测试后还未出现吞图,辛苦大大了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants