• Logo resolution – letterhead logo

    I would like to increase the resolution of the logo.
    I use a logo with a resolution of 300 dbi.

    If I set this as a logo, it creates a graphic with a dpi of 47 in the plugin.

    How can I manually prevent the 300 dpi resolution from being used?

    • This topic was modified 4 years, 11 months ago by talkuvit.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Our plugin sets the height of the logo to 3cm and together with the pixels dimensions of the image, this will determine the resolution (dpi).

    In short, if you want a 47dpi image, you have to upload a logo that is 3/2.54 * 47 = 56px high. For a 300dpi image this is 3/2.54 * 47 = 354px high.
    The width of the image will be scaled proportionally.

    Do note that changing the logo in the settings does not affect existing invoices! If you’re still testing I recommend enabling test mode in the General settings tab (don’t forget to turn it off afterwards).

    • This reply was modified 4 years, 11 months ago by Ewout. Reason: test mode
    Thread Starter talkuvit

    (@talkuvit)

    Thanks for your detailed explanation.

    But that’s not a good solution for me.

    I have to be able to manually set the DPI to 300 DPI in the code.

    Because I also need a 300 DPI for small LOGOS !!

    What do I have to adjust and where in the PHP etc files from the plugin ?!

    Plugin Contributor Ewout

    (@pomegranate)

    I’m not sure I understand…. You don’t need to manually set anything to a specific DPI value, as the DPI value will be derived from the pixel size. If you want to make the logo smaller you can do that with CSS (changing the default 3cm to 1cm):

    
    td.header img {
    	max-height: 1cm;
    	width: auto;
    }
    
    Thread Starter talkuvit

    (@talkuvit)

    Thank you for your answer.

    no problem, maybe I put it badly.

    But, I always need a 300 DPI resolution from the logo! No matter how big or how small the logo is.

    Plugin Contributor Ewout

    (@pomegranate)

    How often are you changing the logo? This is a set & forget thing: you calculate the logo size once, insert that with CSS and done.
    You can set the default dpi of the PDF to 300, but that doesn’t make much difference in the case of the logo because the height is fixed in the CSS. Maybe I don’t understand what you’re trying to accomplish?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logo resolution – letterhead logo’ is closed to new replies.