Skip to content

HTML with Images - unwanted image scaling problem #197

Open

Description

@Dime358

When HTML contains images they are scaled up by ~20% when converting to PDF.

Image 1:
Screenshot 2022-10-05 135628
This is the desired look when generating (taken from HTML template)

Image 2:
Screenshot 2022-10-05 135738
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.

Activity

  1. eXpl0it3r commented on Dec 8, 2025

    @eXpl0it3r
    Collaborator

    I vaguely remember reading a similar issue for PDFsharp itself. Might well be that after the latest update this is fixed or when eventually upgrading to PDFsharp 6.x (#221).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy