SolidInvoice icon indicating copy to clipboard operation
SolidInvoice copied to clipboard

Resize Logo

Open pierredup opened this issue 8 months ago • 4 comments

Discussed in https://github.com/SolidInvoice/SolidInvoice/discussions/1440

Originally posted by knichel January 5, 2025 I have a logo that I tried to add. When I click on the box or upload logo the box stays empty. However, when I preview a PDF, the logo takes the entire screen. Is there something special like sizing/resolution I should know about the logo? Also, the logo does not display when I print an invoice.

pierredup avatar Apr 23 '25 14:04 pierredup

yes, same thing for me. The logo is too big on the pdf, and the email logo is broken or something. I tried a lot of sizes. 100px, 300px, 1000px, but even the 100px seems to be huge on the invoice pdfs. I can't figure out what size to make it, or what aspect ratio. Please provide some advice. It's a small thing but you can't send it to clients this way. It seems like 50x50px is about the best size. The problem is the logo doesn't look good at this size (blurry, jagged), but the size works for the emails, pdfs, and is about the same size as the solidinvoice logo which is 50x40 I think. My suggestion is to make the logo resize properly on different areas like the login screen, the pdfs, the emails, and use good resolution resizing. Maybe allow ico files or svg files, but you would have to build in a good resizing algorithm for those. It would be nice to have decent looking logos on the invoices. Thank you.

jill88 avatar May 28 '25 22:05 jill88

I think some changes were made to this, but now when the pdf is generated of an invoice, the logo is getting resized too big and is overlapping the invoice title header. I tried with different size logos (50px, 100, 200, 300) and they all get resized to the same area. Please fix as the pdf invoices look strange this way, thank you. I've attached a picture.

Image

jill88 avatar Jul 11 '25 17:07 jill88

Also, look how huge the logo is on emails:

Image

jill88 avatar Jul 11 '25 18:07 jill88

This should be resolved in the latest version, let me know if this still causes an issue

pierredup avatar Nov 03 '25 13:11 pierredup