[GH-ISSUE #148] [bug] webp 格式的在线图像无法显示 #111

Closed
opened 2026-03-02 03:37:50 +03:00 by kerem · 3 comments
Owner

Originally created by @adra2n on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/148

详细描述这个 Bug

对于webp 格式的在线图像无法显示,如笔记中插入
![](https://cdn.beekka.com/blogimg/asset/202504/bg2025042122.webp)
无法显示出来

NoteGen 版本

Version 0.13.3

操作系统

macOS

报错日志

[Error] Failed to load resource: the server responded with a status of 403 () (bg2025042209.webp, line 0)

Originally created by @adra2n on GitHub (Apr 24, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/148 ### 详细描述这个 Bug 对于webp 格式的在线图像无法显示,如笔记中插入 `![](https://cdn.beekka.com/blogimg/asset/202504/bg2025042122.webp)` 无法显示出来 ### NoteGen 版本 Version 0.13.3 ### 操作系统 macOS ### 报错日志 [Error] Failed to load resource: the server responded with a status of 403 () (bg2025042209.webp, line 0)
kerem 2026-03-02 03:37:50 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@codexu commented on GitHub (Apr 25, 2025):

测试结果:NoteGen 支持 webp 格式。
使用你的图片测试结果返回 403。

Image
<!-- gh-comment-id:2829095113 --> @codexu commented on GitHub (Apr 25, 2025): 测试结果:NoteGen 支持 webp 格式。 使用你的图片测试结果返回 403。 <img width="566" alt="Image" src="https://github.com/user-attachments/assets/7f78c5ba-2ce7-4ffc-84a4-c341471f33a5" />
Author
Owner

@adra2n commented on GitHub (Apr 25, 2025):

图片可以在浏览器正常打开,难道是NoteGen 的 UA 或者 referer 问题导致了 403?

<!-- gh-comment-id:2829108922 --> @adra2n commented on GitHub (Apr 25, 2025): 图片可以在浏览器正常打开,难道是NoteGen 的 UA 或者 referer 问题导致了 403?
Author
Owner

@codexu commented on GitHub (Apr 25, 2025):

有可能,我试了一下,用 jsDelivr 的链接是可以正常展示的

<!-- gh-comment-id:2829112169 --> @codexu commented on GitHub (Apr 25, 2025): 有可能,我试了一下,用 jsDelivr 的链接是可以正常展示的
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#111
No description provided.