Image size in PDF larger than in Confluence

Comments

7 comments

  • Avatar
    Roman Serazhiev

    Hi Matthias,

    Thanks for your question.

    This option renders images with their original resolution, not necessarily size: https://help.k15t.com/scroll-pdf-exporter/what-can-i-do-if-my-images-get-exported-in-poor-quality-80970241.html.

    Is the image in Confluence has a set size when you are in the edit screen?

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Krohn, Matthias

    Hi Roman,

    yes, in the Confluence editor the size is explicitly set to 492px. But in the PDF at 100% zoom the size is 565px. This is larger than viewing the image in Firefox or Chrome at standard zoom (Ctrl + 0). To be clear, I am not concerning image quality but image size.

    Best regards,
    Matthias

    0
    Comment actions Permalink
  • Avatar
    Krohn, Matthias

    Hi k15t support,

    are you still working on this subject or is a formal request necessary?

    Regards,
    Matthias

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Hi Matthias,

    How did you calculate the pixel size when viewing PDF? Which application did you use?
    I can see that the image is exported with correct size when viewing the HTML source of the PDF:

    <div class="scroll-figure"> <img class="image block-image confluence-embedded-image" src="images/download/attachments/10420248/20170410110351.jpg" alt="images/download/attachments/10420248/20170410110351.jpg" width="492" />
    </div>

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Krohn, Matthias

    Hi Roman,

    to determine the pixel size in PDF in Adobe Acrobat I set zoom to 100%, take a screenshot, and determine the size of the screenshot with IrfanView. Beside this computed determination I see with my own eyes that the image in Adobe Acrobat at 100% zoom is larger than the very same image in Confluence (in Firefox scaled with Ctrl+0 to 100% zoom).

    Can it be that the export to HTML is fine, but the conversion from HTML to PDF enlarge the image by 15%?

    Regards,
    Matthias

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Hi Matthias,

    I can see the same behaviour. Most likely this is related to a DPI settings of the PDF Library when an image is exported to PDF. We are not sure if this is a bug or intentional at this point and will investigate the behaviour further.

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Krohn, Matthias

    Hi Roman,

    as long as there exists no other solution, do you see a simple possibility to re-scale all images down by 15% to their original size via CSS? Which selector would you recommend?

    Regards,
    Matthias

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk