Deykun / maps

Heraldic maps of selected countries. ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฉ๐Ÿ‡ฐ ๐Ÿ‡ช๐Ÿ‡ช ๐Ÿ‡ซ๐Ÿ‡ฎ ๐Ÿ‡ณ๐Ÿ‡ด ๐Ÿ‡ต๐Ÿ‡ฑ
https://deykun.github.io/maps/
MIT License
12 stars 0 forks source link

๐Ÿ–ผ๏ธ Fixing cropped SVGs with non-web-standard units #104

Closed Deykun closed 2 weeks ago

Deykun commented 2 weeks ago

https://github.com/Deykun/maps/issues/98

The issue, for example, was with this SVG: https://upload.wikimedia.org/wikipedia/commons/a/ae/Wappen_R%C3%B6vershagen.svg

It uses points (pt) instead of pixels, which isnโ€™t truly the problem. However, the paths extend beyond the width and height specified by the width and height attributes. Removing those attributes solved the issue as we are trimming the images anyway in next steps.

Removing the units from numbers cropps the image the same sharp did. obraz

Removing them removes the cropping: obraz