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

调节浮图大小 #48

Closed
yuehun opened this issue May 9, 2022 · 14 comments
Closed

调节浮图大小 #48

yuehun opened this issue May 9, 2022 · 14 comments

Comments

@yuehun
Copy link

yuehun commented May 9, 2022

默认浮图为200200,是否可以自定义浮图大小,比如500500

@Mr-VincentW
Copy link
Owner

抱歉我没能理解默认 200x200 是什么意思。浮图秀展示图片的显示尺寸取决于其所获取到高分辨率图片的尺寸及屏幕可用空间的尺寸,并没有 200x200 的规则。您可以附上出现问题的网站链接并附加操作描述,以便我理解您的需求。谢谢。

@yuehun
Copy link
Author

yuehun commented May 9, 2022

抱歉,我没有理解默认的 200x200 是什么英文。浮出图并没有显示显示的图片,显示其尺寸所显示到的展示空间的尺寸及可用的 200x200000x200 的规则。网站理解链接并附加操作描述,以满足您的需求。谢谢。

就是比如本身图片是200x200,我想按比例放大指定倍数,让浮图以400x400显示,因为图本身很小,还是看不清楚

@Mr-VincentW
Copy link
Owner

感谢补充。浮图秀目前不支持插值放大图片,即最大仅展示图片的原始尺寸。未来浮图秀会支持插值放大图片,已在计划中。
200x200 通常不会是网站所能提供图片的最大尺寸,初步估计您所浏览的是未被浮图秀专门适配的网站。您可以附上具体网页链接,以便我检查是否能提供专门适配。

@yuehun
Copy link
Author

yuehun commented May 9, 2022

image
Boss直聘招募侧的,要看头像,但是Boss默认的200x200,有的看不清,就想放大一下

@Mr-VincentW
Copy link
Owner

这个可能比较困难,我没有可发起招聘的账户,预计看不到这个页面,无法检查图片尺寸。

@Mr-VincentW
Copy link
Owner

从您给的示例链接来看,原图尺寸远大于 200x200,而且变换规则简单。浮图秀可以在后续更新中提供对该网站的适配。该网站上如果有其他图片也需要放大,欢迎补充图片链接及可能的变换规则。谢谢。

@yuehun
Copy link
Author

yuehun commented May 9, 2022

从您给的示例链接来看,原图尺寸远大于 200x200,而且变换规则简单。浮图秀可以在后续更新中提供对该网站的适配。该网站上如果有其他图片也需要放大,欢迎补充图片链接及可能的变换规则。谢谢。

感谢,无其他需要适配的规则了

@yuehun
Copy link
Author

yuehun commented May 9, 2022

从给您的示例链接来看,原图尺寸大于 2200,并且变换规则需要在简单的情况下提供。变换规则。谢谢。

我可以直接替换目前已安装的本地文件,更新规则嘛,因为我看您的更新频率可能需要好多天以后才会更新,哈哈哈
您有时间可以把规则发我一下嘛,我找到本地文件了

@Mr-VincentW
Copy link
Owner

请将如下规则加入解析规则列表:

'(?:.+\\.)?zhipin\\.com': {
    srcMatching: {
      srcRegExp: '(img\\.bosszhipin\\.com/.+?)(?:_s)?(@IMG@).*',
      processor: '$1$2'
    }
  }

@yuehun
Copy link
Author

yuehun commented May 9, 2022

image
没生效,还是等您更新吧,哈哈哈

@Mr-VincentW
Copy link
Owner

Mr-VincentW commented May 9, 2022 via email

@yuehun
Copy link
Author

yuehun commented May 10, 2022

可能需要关闭所有浏览器窗口后重新启动。

On Mon, 9 May 2022 at 23:29, yuehun @.> wrote: [image: image] https://user-images.githubusercontent.com/24507941/167400901-d9c5ad98-7200-4563-8f11-d24aa9930d99.png 没生效,还是等您更新吧,哈哈哈 — Reply to this email directly, view it on GitHub <#48 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7CT75CPYAKB6TENIOWMN3VJDZJPANCNFSM5VNNBFDA . You are receiving this because you commented.Message ID: @.>

感谢,可以了

@Mr-VincentW
Copy link
Owner

已于 4.17.0 起适配 Boss 直聘。

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