ArthurHub / ArthurHub/HTML-Renderer

HTML with Images - unwanted image scaling problem

未關閉
#197 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
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:
![Screenshot 2022-10-05 135628](https://user-images.githubusercontent.com/32173891/194054894-5195821b-2cdf-419f-b9e5-c95a23e61916.jpg)
_This is the desired look when generating (taken from HTML template)_

Image 2:
![Screenshot 2022-10-05 135738](https://user-images.githubusercontent.com/32173891/194055092-fab0ab3b-7988-4352-9885-fe3ba9b74dc6.jpg)
_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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。