-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
缩略图生成的图片变形了。 #74
Comments
哪里的zc? |
附议,希望大佬调整不等宽图片的缩略图显示效果💡 |
看起来正确的做法是创建一个timthumb-config.php文件然后更改DEFAULT_ZC EasyImages2.0/app/TimThumb.php Lines 83 to 84 in 28c56db
不过也可以直接把这一行改成1就是了(x EasyImages2.0/app/TimThumb.php Line 610 in 28c56db
|
缩略图生成方式为“TimThumb”时可以使用 如果缩略图生成方式是“原图”,可以直接在list.php里面给img加个object-fit: cover属性就行了。 Line 65 in 28c56db
修改后的代码: |
貌似只有当图片是正方形的时候才会不变形。这样的话,长方形图片生成的缩略图就很难看了。
可以修改成居中裁剪吗,多余的裁剪掉无所谓。变形看起来是真的难受额。
我看源码解决了。打扰大佬啦。zc = 1 就好了。默认的不裁剪只缩放。值为 0.
The text was updated successfully, but these errors were encountered: