-
Notifications
You must be signed in to change notification settings - Fork 47
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
Added support for EPS, PDF, and SVG image comparison #194
Merged
+1,442
−34
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
03cf9e4
Added support for EPS, PDF, and SVG image comparison
astrofrog 30d1135
Show reason for test being skipped
astrofrog d5d54be
Fix typo in formats
astrofrog c1eaec0
Install ghostscript and inkscape on Linux CI
astrofrog af15e86
Make testing more robust to presence of gs/inkscape and Matplotlib ve…
astrofrog 90d9149
Fix pre-commit
astrofrog da8364a
Use raw string to fix Windows failures
astrofrog 90dde3f
Convert files to PNG before computing hash
astrofrog e35bb47
Update hashes and try and make PNG output not include Matplotlib version
astrofrog 761f1e7
Updated PNG hashes and only set metdata for PNG output
astrofrog 65f54bb
Skip hash library tests for Matplotlib >=3.4
astrofrog c95621e
Fix SVG hash
astrofrog adcce3c
Skip hash comparison for vector graphics not on Linux
astrofrog 28b171e
Don't convert to PNG for hash calculation
astrofrog 28c0a01
Added docs about deterministic figures
astrofrog faee7af
Update some hashes
astrofrog 6d4e40e
Update remaining hashes
astrofrog 71ced71
Fix syntax highlighting
astrofrog f1b6cb3
Mention minimum Matplotlib versions for different formats and fix tes…
astrofrog 70b5d55
Fix figures in HTML summary
astrofrog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran a simple test with PDF, EPS, and SVG and generated the HTML summary. The baseline and result images are the original vector format but the diff image is a PNG. On my browser (Safari) PDF works inside an
<img>
, but EPS does not. SVG should be compatible with all browsers. I think we should show the PNG versions for the baseline and result images for PDF and EPS.All these files are available for PDF for example: result.pdf baseline_pdf.png baseline.pdf result_pdf-failed-diff.png result_pdf.png
We could use something like this to get the file name for the images: