-
Notifications
You must be signed in to change notification settings - Fork 50
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
关于图片输出格式的问题 #96
Comments
确定输出格式的代码在这里: Lines 480 to 525 in 5cfbe45
设计上是这样的,设置单个文件为输入会自动将输出路径的扩展名设为 png 或 webp(都是无损压缩),如果你需要有损压缩的话,还需要自己将输出路径的扩展名改成 jpg 或 webp(因为它也可以是有损压缩)
输入是文件夹的话,输出的扩展名会和输入文件相同
输出路径是 png 的话输出的就是 png,不会进行有损压缩
原因就是上面的第一点和第二点 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
图片默认输出格式似乎为png格式,当我放入1张jpg格式图片后,输出图片结果为png格式,但若我将jpg格式图片放入一个文件夹之后再进行超分,输出文件夹中的图片仍将保持为jpg格式。
当我开启有损压缩后,所得图片仍为png格式,而非webp或者jpeg,只有当我将有损压缩和优先将图片保存为无损webp后,得到的图片才是经过有损压缩后的webp格式。
The text was updated successfully, but these errors were encountered: