3

I would like to increase the quality of the logo in the PDF invoices. At the moment I upload a logo exactly 200x50 px in size and with JPG quality 99 and it still looks terrible. I also tried PNG24 without any better results. If I upload a larger logo, it is embedded larger but the quality is still shit.

Could anyone point me in the right direction? I'm familiar with PHP and coding, if that is what it takes.

Thanks!

1 Answer 1

4

The key to increasing the image quality is to keep the image uploaded at the same ratio of 200x50px, but at a higher resolution, so a 400x100px image will look better, or a 600x150px image, etc.

I've found if you don't keep the same ratio as the settings it will make the image quality look terrible.

2
  • 1
    Thanks. That worked. I also changed the maximum height in the file app/code/core/mage/Sales/Model/Order/Pdf/Abstract.php to prevent the logo from being too big. Commented Oct 15, 2014 at 14:33
  • 400x100px image will look better, but it looks big. I tried with the ratio: 900x100. OK better
    – TinhNQ
    Commented Aug 3, 2018 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.