-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
test_rasterize_dpi fails with 1.5.1 #5829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hmm, I saw the same thing locally in #5817 (I use arch 😄 ) but everything is passing on travis so I wrote it off as a local issue.... |
I'm seeing it too. Not sure why Travis doesn't catch it |
Just as another data point -- I can't reproduce in Python 2.7.11 or 3.5.1 (Conda on Fedora). |
I'm able to reproduce it now -- I think I wasn't getting a full rebuild earlier. |
Sorry everyone 😞 . |
I think what we're running into is how Inkscape is handling image edge rendering -- which appears to be different in the version of Inkscape on Travis (which I think is 0.48.1), and that on our local machines (which is probably the latest 0.91). The old Inkscape will resample the image such that it "bleeds" outside of the image bounding box. This creates the same rendering before and after the matplotlib change. The new Inkscape seems to strictly crop the image to the image bounding box, creating a different rendering between the two images -- the old has bleed (since it wasn't cropped correctly) and the new one doesn't. The bottom line is that I think it's safe to update the image to the latest generated in this case. There isn't actually a matplotlib bug here as far as I can tell -- the entire image content (and nothing more) is making it into the output SVG, which is exactly right. |
Probably need to add a test on inkscape version too so we can skip on travis? |
Hopefully by updating the baseline image, we won't be Inkscape-version-dependent anymore. |
Fix #5829. Update the baseline image.
I am getting only one test failure for both Python 2.7.11 and 3.5.1 on Arch. Hope this helps :)
The text was updated successfully, but these errors were encountered: