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

[Feature]: 图片处理方式:只填入宽或者高,另一边自适应 #81

Closed
3 tasks done
eallion opened this issue Jul 31, 2023 · 5 comments
Closed
3 tasks done
Assignees

Comments

@eallion
Copy link

eallion commented Jul 31, 2023

前置阅读 | Pre-reading

PicList的版本 | PicList Version

v1.9.8

系统信息 | System Information

Windows

功能请求 | Feature request

图片上传前的处理方式:
根据 EXIF 信息,或其他方式,先确定图片是横版还是竖版,然后只填入宽或者高,另一边自适应。
比如:
1920x1080.jpg
1440x1200.jpg
300x400.jpg
当限制宽度为 800 时,这些图片的高度就自动计算,不足设定值时,保持原来大小,结果:
1422x800.jpg
960x800.jpg
300x400.jpg
限制高度同理。

(非常优秀的项目,已赞 🎉)

@Kuingsmile
Copy link
Owner

目前piclist是支持按百分比缩放,我的理解是新增类似于百分比缩放保持高宽比,但是可以指定高宽中的其中一项? @eallion
如果是我理解的这样子可以实现,我测试下

@eallion
Copy link
Author

eallion commented Jul 31, 2023

嗯,差不多是这样的,指定一项,另一项等比例缩放。

@Kuingsmile
Copy link
Owner

@eallion added in 3cc118e

@eallion
Copy link
Author

eallion commented Aug 2, 2023

太有效率了!赞!

@eallion
Copy link
Author

eallion commented Aug 9, 2023

@Kuingsmile 我终于记起来原型了,是腾讯云的图片处理。(打扰了)

QQ截图20230809170946

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