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

有没有可能给出设定图片大小的选项,比如不超过500K #21

Open
liujunwei4321 opened this issue Jun 16, 2024 · 2 comments

Comments

@liujunwei4321
Copy link

上传网站经常要求图片大小不超500KB,100KB,20KB什么的。

@liujunwei4321
Copy link
Author

我想多了,因为rimage本向没有这个选项和功能。除非你用程序自动尝试调整输出质量,超过指定大小的话,质量再往下调重新试,可用二分法去尝试。

@Mikachu2333
Copy link
Owner

我想多了,因为rimage本向没有这个选项和功能。除非你用程序自动尝试调整输出质量,超过指定大小的话,质量再往下调重新试,可用二分法去尝试。

我曾经想过,问题是他不是一次函数形式或二次函数形式的大小下降,不断使用二分法的一般都是有规律的数据吧,图片压缩是个很奇怪的事情,有时候质量设置过低反而会增加图片的大小……想来想去二分法似乎不是很合适,要真想做到还是得挨个尝试……但是又过于耗费资源……、

issue先留着吧,我想想有啥办法没,过几天抽出空以后可以找rimage的原作者问问

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

No branches or pull requests

2 participants