svgl icon indicating copy to clipboard operation
svgl copied to clipboard

Python logo doesn't work well

Open HananGK opened this issue 1 year ago • 2 comments

When I try to add the Python logo to my code it appears of color green and only a corner is visible, must have an error on the code but I'm not able to resolve it. With the other logos I don't have any problem. Hope you can fix it, thanks.

HananGK avatar Jul 07 '24 14:07 HananGK

Python logo does have to much white space around it, a 32x32 logo was put into a 64x64 viewBox.

here is test.html I used to compare python to other logos.

<html>
  <body>
    <img src='r.svg'/>
    <img src='python.svg'/>
    <img src='csharp.svg'/>
  </body>
</html>

There are lot's of tools for fixing stuff like that eg. https://www.svgviewer.dev/. I will do it myself a bit later if I have time.

@HananGK, write better bug reports. You have an issue that is probably very specific to your code and situation, I have to blindly punch the logo into different situation and hope your issue shows up. Give as much information as you can about what you are doing and section of the code. Try to write a Minimal, Reproducible Example (causing the issue in as few lines of code as possible.)

RatoGBM avatar Jul 16 '24 01:07 RatoGBM

Yeah, python logo had it's size set to 2500x2500 and a way to large viewBox. Here is a fixed version, I removed the dimensions entirely, and set viewBox="16 16 32 32". Dirty but works. python

RatoGBM avatar Jul 16 '24 05:07 RatoGBM

Fixed 🚀 https://github.com/pheralb/svgl/commit/6ad19d71f48aa34ebddae8ae1418ac1b607d6903

pheralb avatar Oct 14 '24 17:10 pheralb