惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

筑语日志

nginx 升级至1.31.0 - 筑语日志 被百度收录 - 筑语日志 已删除评论bug修复 - 筑语日志 mini的nginx代理bug修复 - 筑语日志 修复CMYK色彩传图失败的bug - 筑语日志 个人主页可以通过用户名访问了 - 筑语日志 增设删图功能 - 筑语日志 首页动态页码更新、增设link预览 - 筑语日志 Gravatar头像代理 - 筑语日志 从foreverblog.cn来访的客人 - 筑语日志 还得是打球 - 筑语日志 记录的动力 - 筑语日志 内容长度限制 - 筑语日志 手动换屏幕记录 - 筑语日志 《禅与摩托车维修艺术》节选 - 筑语日志
增设换图功能 - 筑语日志
mgt · 2025-12-29 · via 筑语日志

经过一系列的构想,换图功能终于可用了。图片替换成功后,会显示一个“替换时间”。
Snipaste_2025-12-29_00-16-51.jpg

点击换图后,会直接弹出选图窗口,然后进入一个暂时展示区。展示区有一些新老图片的匹配信息,最关键的就是“宽高比”和“匹配度”,这两点不满足是不能提交成功的。。。这个时候,点击编辑图标可以继续换图。。。

Snipaste_2025-12-29_00-16-01.jpg

这个小小的功能颇费周折,但最终暂时从简:

1.谁可以换图?上传者?维护者?这最终导向一个版本管理系统或者贡献历史系统。

2.什么情况下可以换图?有人收藏、评论、涂鸦、点注的时候出现图片更新怎么办?图片更新后导致与评论不匹配怎么办?这就需要图片与内容匹配度提示

3.什么情况下的图片变化是可容忍的?微微裁切?局部模糊或瑕疵(本身可能也是被评论的内容)处理?颜色变化?清晰度提升?相似图片?……这需要一个图片相似度计算系统

4.交互怎样最直观?推翻了一稿又一稿,直到符合直觉。

5.图片计算是否可以放在云服务器?一个是比较重,另一个是python的C语言库有平台依赖,在macos上生产测试的代码没法像java一样直接平移到centos上,最后在docker和本地部署之间我选择了后者。将计算服务布置在本地服务器上(gunicorn+flask+cv2),双层nginx用于代理,rsync用于云端与本地的图库同步(该同步初次完成后,后续将由tomcat的存图触发)。

6.后续还有其他一系列操作,择日再逐一补全