webERP Forum
what company logo resolution and density will just work? - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: How To ? (http://www.weberp.org/forum/forumdisplay.php?fid=6)
+--- Thread: what company logo resolution and density will just work? (/showthread.php?tid=9259)



what company logo resolution and density will just work? - dalescott - 06-16-2022

Hi all, is there a "standard" resolution (pixels HxV) and density (e.g. DPI) for a company logo that will look reasonable in both the main menu and in printed documents (such as a PO)?

I started with a image resolution of 67x80 (.../companies/companyname/logo.jpg) as per max 170x80 stated in the “Getting Started” section in Manual (“The logo should be a .jpg file and just a small image no more than 170 px accross and 80 pixels high.”). However, when viewed in webERP the logo is stretched horizontally in the footer of the main menu, and overlaps with the first two lines of the company details in a printed PO.

I noticed the webERP logo in the code is 200x50, so I reduced the size to 49x50. However, in webERP the logo is still stretched horizontally in the footer and still overlaps with the company details in the PO (albeit less than before).

I then realized the images I was creating don't have ANY meta data, such as DPI. Could this be the problem? Fwiw, I used Pinta (on Linux) to resize the logos.

Thanks for any help and direction. I can post screenshots if it would help.

Best regards,
Dale



Problem images:

Code:
dalescott@fpcslinux:~/Downloads$ ll
total 32
drwxr-xr-x  2 dalescott dalescott 4096 Jun 15 07:12 ./
drwxr-xr-x 18 dalescott dalescott 4096 May 22 12:48 ../
-rw-r--r--  1 dalescott dalescott 7324 Jun 14 07:06 AOEM-67x80.jpg
-rw-r--r--  1 dalescott dalescott 3836 Jun 15 06:54 AOEM-full_from_PDF-49x50.jpg
-rw-r--r--  1 dalescott dalescott 7302 Jun 14 07:03 FPCS-68x80.jpg
-rw-r--r--  1 dalescott dalescott 3565 Jun 15 06:50 FPCS-full_from_PDF-49x50.jpg
dalescott@fpcslinux:~/Downloads$ file *
AOEM-67x80.jpg:              JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 67x80, components 3
AOEM-full_from_PDF-49x50.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 47x50, components 3
FPCS-68x80.jpg:              JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 68x80, components 3
FPCS-full_from_PDF-49x50.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 49x50, components 3
dalescott@fpcslinux:~/Downloads$



"Standard" photo image:

Code:
dale@firefly:~/Nextcloud/Temp$ file DaleS_Headshot-2021_tight-200x204.jpg
DaleS_Headshot-2021_tight-200x204.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, Exif Standard: [TIFF image data, little-endian, direntries=0], baseline, precision 8, 200x204, components 3
dale@firefly:~/Nextcloud/Temp$



RE: what company logo resolution and density will just work? - dalescott - 06-17-2022

Update. I set the DPI on the Hx80 images to 72DPI (the same DPI the webERP logo is set to) and the logo appears smaller on the PDF than before. Unfortunately still a bit too big, and the image in the footer is still stretched horizontally. I'll try again setting the Hx50 images to 72DPI.

What process do you use when setting up a new client? Do you accept the client's logo as-is and adjust the code and formatting to match, or do you massage the logo until it works with the exiting code and formatting?