Skip to content

Conversation

@Hemomoo
Copy link

@Hemomoo Hemomoo commented Dec 25, 2025

添加对webp图片格式的支持,包括类型检测和转换处理
优化图片宽高获取逻辑,增加类型检查和空值处理
改进图片数据获取,添加重定向和超时处理

  1. 修复了 node.attrs?.width 不是数字的问题,防止出现 "null" "rem" 这种格式

邓亮 added 2 commits December 25, 2025 14:58
添加对webp图片格式的支持,包括类型检测和转换处理
优化图片宽高获取逻辑,增加类型检查和空值处理
改进图片数据获取,添加重定向和超时处理
修复(intermediate value).bytes is not a function
    at W (index.mjs:1:3196)
    这个问题
当图片宽度或高度计算值过小时,使用默认尺寸替代,确保图片显示清晰可见
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

Successfully merging this pull request may close these issues.

1 participant