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.
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.
Removing them removes the cropping: