ArthurHub / ArthurHub/HTML-Renderer
HTML with Images - unwanted image scaling problem
- Vorherrschende Sprache
- C#
- Sterne
- 1.4k
- Forks
- 550
- Ø Merge
- 14 T. 9 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100