Comments (1)
Same with some SVGs I have to deal with, even after editing manually in Inkscape.
Related issue: astraw/svg_stack#8 which includes sample file and fix
Sample affected file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Capa_1"
x="0px"
y="0px"
viewBox="0 0 512.107 512.107"
style="enable-background:new 0 0 512.107 512.107;"
xml:space="preserve"
sodipodi:docname="test.svg"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs85" /><sodipodi:namedview
id="namedview83"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="0.4608412"
inkscape:cx="-1332.3462"
inkscape:cy="451.34853"
inkscape:current-layer="Capa_1" />
<rect
style="fill:#efe3cd;stroke-width:11.3386;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
id="rect287"
width="160.57593"
height="128.02675"
x="99.817467"
y="141.04642" /></svg>
zip of file for easier download maybe:
test.zip
Resizing canvas of the svg in Inkscape fixes this by the way.
from svg_utils.
Related Issues (20)
- Issue reading utf-8 svg files
- Scale around center; knowing where to move; getting coordinates, bounding boxes of paths, extracting svg path element's d attribute
- add instructions for conda HOT 6
- save method creates a blank svg HOT 3
- Unknown expected types for SVGFigure parameters HOT 5
- 0.3.1 wheel upload "svgutils-0.3.1-py3-none-any.whl" of 2010-01-04 is not 0.3.1 and breaks existing software HOT 5
- "copy()" deepcopys "self.root" not "self", leading to unexpected behaviour not in line with documentation HOT 2
- [0.3.3] Started producing SVG without width, height and viewBox HOT 5
- Plans for dropping support for end-of-life Python 2.7 and 3.5? HOT 2
- Get rid of issue label "hacktoberfest"? HOT 2
- Issues with SVGFigure Width and Height not being set HOT 9
- Docs still list 'scale_xy' as a method instead of 'scale'
- UnicodeDecodeError: svgutils.transform.fromfile not able to read the svgfile generated by inkscape HOT 1
- `compose` creates empty figure HOT 2
- Workaround mpl units bug not necessary
- Expose functionality as as command line tool
- 对可交互式的svg图片(pygal生成),拼接之后显示黑色框 For interactive SVG pictures (generated by pygal), black boxes are displayed after splicing HOT 1
- SVGFigure does not set width and height element if created directly HOT 5
- why is "moveto" actually "moveby" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg_utils.