[GH-ISSUE #2493] Images fail to load in articles using non-standard lazy-loading tags (e.g., WeChat data-src) #1496

Open
opened 2026-03-02 11:57:40 +03:00 by kerem · 1 comment
Owner

Originally created by @ZhongTerry on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2493

Describe the Bug

When capturing articles from certain platforms (specifically WeChat Official Accounts), images fail to display in the KaraKeep reader/preview view.
Upon inspecting the DOM, I found that these images use non-standard attributes like data-src or data-srv for lazy loading, instead of the standard src attribute. KaraKeep's parser saves the original tag but doesn't seem to map these attributes to src, causing the browser to ignore the image source.

Steps to Reproduce

  1. Capture a WeChat article (e.g., https://mp.weixin.qq.com/s/kvhc3xjpBl8Uk4-Yv0-CAw).
  2. Open the bookmark in KaraKeep.
  3. Observe that images are broken or replaced by placeholders.
  4. Inspect the image element (which can't be seen without inspecting) to see without a valid src attribute.

Expected Behaviour

The parser should identify common lazy-loading attributes (like data-src, data-srv, etc.) and rewrite them to the standard src attribute during the article cleaning process.

or make it able to be seen in KaraKeep.

Screenshots or Additional Context

Image Image

Device Details

No response

Exact Karakeep Version

v0.30.0

Environment Details

No response

Debug Logs

No response

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @ZhongTerry on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2493 ### Describe the Bug When capturing articles from certain platforms (specifically WeChat Official Accounts), images fail to display in the KaraKeep reader/preview view. Upon inspecting the DOM, I found that these images use non-standard attributes like data-src or data-srv for lazy loading, instead of the standard src attribute. KaraKeep's parser saves the original tag but doesn't seem to map these attributes to src, causing the browser to ignore the image source. ### Steps to Reproduce 1. Capture a WeChat article (e.g., https://mp.weixin.qq.com/s/kvhc3xjpBl8Uk4-Yv0-CAw). 2. Open the bookmark in KaraKeep. 3. Observe that images are broken or replaced by placeholders. 4. Inspect the image element (which can't be seen without inspecting) to see <img data-src="..."> without a valid src attribute. ### Expected Behaviour The parser should identify common lazy-loading attributes (like data-src, data-srv, etc.) and rewrite them to the standard src attribute during the article cleaning process. or make it able to be seen in KaraKeep. ### Screenshots or Additional Context <img width="1808" height="967" alt="Image" src="https://github.com/user-attachments/assets/223c83a6-441e-444d-8f0a-6e23bc4d94a3" /> <img width="1818" height="924" alt="Image" src="https://github.com/user-attachments/assets/098384f9-e794-4004-8c2a-9590e0cc591a" /> ### Device Details _No response_ ### Exact Karakeep Version v0.30.0 ### Environment Details _No response_ ### Debug Logs _No response_ ### Have you checked the troubleshooting guide? - [x] I have checked the troubleshooting guide and I haven't found a solution to my problem
Author
Owner

@ZhongTerry commented on GitHub (Feb 18, 2026):

and when displaying wechat images, tags like 'referrerpolicy="no-referrer"' should be added.

<!-- gh-comment-id:3920023950 --> @ZhongTerry commented on GitHub (Feb 18, 2026): and when displaying wechat images, tags like 'referrerpolicy="no-referrer"' should be added.
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/karakeep#1496
No description provided.