ArthurHub / ArthurHub/HTML-Renderer
HTML with Images - unwanted image scaling problem
- Langage dominant
- C#
- Étoiles
- 1.4k
- Forks
- 550
- Merge moyen
- 14 j 9 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- desktop
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100