ArthurHub / ArthurHub/HTML-Renderer
HTML with Images - unwanted image scaling problem
- 主要語言
- C#
- 星號
- 1.4k
- 分支
- 550
- 平均合併
- 14 天 9 小時
- 30 天內合併 PR
- 1
描述
When HTML contains images they are scaled up by ~20% when converting to PDF.
Image 1:

_This is the desired look when generating (taken from HTML template)_
Image 2:

_This is the result i am getting_
When HTML is opened in browser it looks like _example 1_ as it should be.
The < img > tag have height and width attributes and this is occurring every time image is present in the HTML.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先,使用包含具有明確 height 和 width 屬性的 img 標籤的 HTML 重現問題,然後追蹤 HTML 圖片尺寸調整與 PDF 渲染的進入點。比較產生的 PDF 尺寸與瀏覽器中的結果;當圖片保留 HTML 指定的尺寸且沒有不必要的縮放時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- desktop
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100