Comments (12)
I can't open that image (cloudqllo.jpg
) in my image viewers (Gimp cannot open it either). So I'm rather surprised the test passed before! We might have to find a way to know if the image is valid before rendering.
from svglib.
Same here, and this image is not even referenced explicitly in any of the SVG files in W3C_SVG_12_TinyTestSuite/svg
. So maybe it's used in some kind of loop...
from svglib.
I'm working on convertImage now, several things need updating.
from svglib.
With the above commits, the tests run fine on Python 2, however on Python 3, I'm confronted with https://bitbucket.org/rptlab/reportlab/issues/98/
from svglib.
Funny error. Especially since the reportlab.graphics.renderbase.Renderer
class has neither a drawImage
method nor a superclass...
from svglib.
@claudep I suggest you send a message on the RL mailing list, which is what they observe more thoroughly than some issue tracker. And tell Robin this is kind of a late X-mas gift from me. ;-)
from svglib.
I don't know if this is really a gift or not for RL, as I don't know the capabilities of their closed-source PLUS version.
from svglib.
ReportLab 3.3.26 solves this issue. Now should we still add some workaround code with Python 3/ReportLab < 3.3.26, considering that such combinations might be used in the next two years at least? (next Debian will have 3.3.0, as has Ubuntu 16.04).
from svglib.
However, I'm not sure we can do anything, as we cannot know whether the drawing we are building will be used to render an image or a PDF or anything else.
from svglib.
Assuming reportlab 3.3.26 can be installed flawlessly, I'd opt for adding a note to the testsuite's README and the respective code line where the PNGs are created to use this with reportlab 3.3.36, rather than pin this version in the requirements, since I believe typical reportlab users are not jumping on new versions automatically. Does that make sense?
from svglib.
+1 to not require this version and to a note in the README.
I don't think converting to PNG is a much used ability of svglib, considering ImageMagick does it too.
from svglib.
Done in d122b5b.
from svglib.
Related Issues (20)
- wrong width and height attributes of drawing obj HOT 1
- Implementation error in rendering of paths with shorthand command for quadratic Bézier curves HOT 5
- Transform on clipPath does not work HOT 2
- Error when svg file contains references to font with space in its name HOT 1
- Error on install svglib HOT 2
- Reportlab 4.0.0 added dependency to pycairo HOT 3
- Error ByteIO HOT 3
- svglib fails to render properly HOT 12
- CI failure because of missing cairo HOT 9
- Using root log instead of logger HOT 3
- Units px and pt are wrong HOT 5
- Embedding SVG fonts in PDF/rlg HOT 5
- Add font size test case to test suite
- Rename default branch to main HOT 2
- Add more example and pip install commands to README.md HOT 4
- svglib doesn't remove temporary files properly? HOT 5
- Problems with embedded image sizes HOT 4
- svglib ignores <switch> nodes HOT 4
- Please share wheel file on pypi HOT 5
- Element visibility in style attribute not respected 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 svglib.