Skip to content

Conversation

@Zazzik1
Copy link

@Zazzik1 Zazzik1 commented Sep 28, 2024

  • Added a new class SVGFactory, which allows to create SVG images based on the 2d matrix. The method SVGFactory.save is called in the AztecCode.save method if the file name ends with .svg (when format is not provided) or has SVG format. All of the code was covered by tests. Please find the example aztec code below. The advantage of SVG is that it scales well without any loss of quality. These changes are based on PR I made here: Added support for SVG files in the AztecCode.save method delimitry/aztec_code_generator#10
  • Adjusted my tests to make them work with your changes and added new test cases.
  • Removed from CI no longer supported Python 3.7, added version 3.11 and updated the test command to use py.test instead of python setup.py test. Added pytest as a test dependency.

file

@Zazzik1 Zazzik1 marked this pull request as ready for review September 28, 2024 09:49
@Zazzik1 Zazzik1 marked this pull request as draft September 28, 2024 11:11
@Zazzik1 Zazzik1 force-pushed the zazzik1/support_for_svg_dlenski branch from 4ee2136 to 0713725 Compare September 28, 2024 11:42
@Zazzik1 Zazzik1 marked this pull request as ready for review September 28, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants