ArthurHub / ArthurHub/HTML-Renderer

HTML with Images - unwanted image scaling problem

Đang mở
#197 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
C#
Star
1.4k
Fork
550
Merge trung bình
14 ngày 9 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reproducing the issue with the HTML containing an img tag with explicit height and width attributes, then trace the HTML image-sizing and PDF rendering entry points. Compare the generated PDF dimensions with the browser result; done means images retain the dimensions specified by the HTML without the unwanted scaling.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.