文档(ClaudeCode): arno-article-summary 缩略图生成增加 Pillow fallback

金鹏.md 补上今日文章的缩略图引用。
This commit is contained in:
2026-07-17 13:55:42 +08:00
parent dbf9eb720f
commit 8c5f0984b7
6 changed files with 17 additions and 0 deletions
+14
View File
@@ -163,6 +163,20 @@ convert "<大图路径>" -resize 160x90^ -gravity center -extent 160x90 "<同目
ffmpeg -i "<大图路径>" -vf "scale=160:90:force_original_aspect_ratio=increase,crop=160:90" "<缩略图路径>" -y
```
若两者均不可用,回退到 Python Pillow
```python
from PIL import Image
img = Image.open("<大图路径>")
w, h = img.size
target = 160/90
if w/h > target:
nw = int(h * target); img = img.crop(((w-nw)//2, 0, (w+nw)//2, h))
else:
nh = int(w / target); img = img.crop((0, (h-nh)//2, w, (h+nh)//2))
img.resize((160, 90), Image.LANCZOS).save("<缩略图路径>")
```
### 8. 输出格式
#### 8a. 体系内文章组(有关联的文章,用父条目分组)
+3
View File
@@ -17,6 +17,7 @@
## 2026-07-17
- [AI战略定力](https://mp.weixin.qq.com/s/Y5IbxmbAvyB9WfYypjcXlw)
- ![-](./金鹏/20260717/20260717-001-thumb.png)
- ![-](./金鹏/20260717/20260717-001.png)
- **在智能化浪潮中保持清醒,在变革中坚守方向——中国 AI 的战略定力,不因短期波动而动摇,不因外部压力而退缩。**
- 战略层: [七维解码:中国AI战略定力从何而来、向何处去](https://mp.weixin.qq.com/s/Y5IbxmbAvyB9WfYypjcXlw)
@@ -46,6 +47,7 @@
- GLM-5.2 以 MIT 协议开源,百万上下文——"**一只手向上摸高,挑战智能极限;另一只手向下铺路,让前沿能力开放普惠**"
- [智能体工程](https://mp.weixin.qq.com/s/YqIyL7uW4EV2r5HLDW7wcA)
- ![-](./金鹏/20260717/20260717-002-thumb.png)
- ![-](./金鹏/20260717/20260717-002.png)
- **从"一问一答"到"设定目标、自动循环"——AI 辅助开发正从工具走向伙伴,而 Loop Engineering 的实践者正是这一质变的设计师。**
- 构建层: [循环设计:在 CodeBuddy 中构建自主循环系统](https://mp.weixin.qq.com/s/YqIyL7uW4EV2r5HLDW7wcA)
@@ -67,6 +69,7 @@
- **这套方法论不绑定任意平台、不局限任意场景——凡行为效果难以直观判定优劣的 Harness 类工作流,均可直接使用**
- [深圳夜间无人物流规模化:3个月线路从2条增至331条](https://mp.weixin.qq.com/s/Ae2jmLdaTYyjlnP8oel8JQ)
- ![-](./金鹏/20260717/20260717-003-thumb.png)
- 深圳特区报 / 戴晓蓉
- 深圳今年 3 月向功能型无人车开放夜间路权以来,无人车夜间配送线路从 2 条增至 331 条,投用车辆超百台,6 月单月夜间行驶里程突破 4 万公里
- 以龙岗、坪山为核心,串联宝安形成三区主干运输廊道,延伸覆盖福田、南山等七区;在营功能型无人车 1273 台(物流 815 台、环卫 453 台、巡检 5 台),累计开放线路 2633 条总里程 11980 公里,夜间运营里程占比超两成
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB