Image size in PDF larger than in Confluence

Comments

9 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
  • Avatar
    Patrick Leal

    I'm having the same issue with controlling image size in the PDF export. There seems to no option to control image size in Scroll PDF Exporter in Confluence Cloud, even if you change the size of the image on your Confluence page. I can't figure out any method to its output settings. 

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Patrick Leal - within the template settings in our app we don't have any options related to offering a default control for how all images are exported.  This is something we have an open feature request for here - https://k15t.jira.com/browse/EXP-2442. For images on cloud, we will preserve the height/width which is set in the page storage format when using the resizing tool for the image on the page. These image dimension values are not displayed in the editor view (like in Confluence Server/DC) but can be seen when viewing the storage format from the Advanced Details options in the page tools ••• 

    Kind regards, Thomas (K15t) 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk