Giter Site home page Giter Site logo

Comments (12)

claudep avatar claudep commented on May 21, 2024

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.

deeplook avatar deeplook commented on May 21, 2024

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.

claudep avatar claudep commented on May 21, 2024

I'm working on convertImage now, several things need updating.

from svglib.

claudep avatar claudep commented on May 21, 2024

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.

deeplook avatar deeplook commented on May 21, 2024

Funny error. Especially since the reportlab.graphics.renderbase.Renderer class has neither a drawImage method nor a superclass...

from svglib.

deeplook avatar deeplook commented on May 21, 2024

@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.

claudep avatar claudep commented on May 21, 2024

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.

claudep avatar claudep commented on May 21, 2024

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.

claudep avatar claudep commented on May 21, 2024

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.

deeplook avatar deeplook commented on May 21, 2024

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.

claudep avatar claudep commented on May 21, 2024

+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.

deeplook avatar deeplook commented on May 21, 2024

Done in d122b5b.

from svglib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.