All major and minor version changes will be documented in this file. Details of patch-level version changes can be found in commit messages.
- code quality improvements
- use ruff format
- fix --width
-
Breaking Change to
ansiTo.*
functions removingwide=
optionNote:
def ansiToSVG( ansiText: str, fileName: str, theme: str | None = None, width: int = WIDTH_DEFAULT, wide: bool = True, title: str = TITLE, ):
has been replaced by:
def ansiToSVG( ansiText: str, fileName: str, theme: str | None = None, width: int = WIDTH_DEFAULT, title: str = TITLE, ):
meaning that calling
ansiToSVG
with onlyansiText
and afileName
will result in a 49 char wide image compared to the previous 89 char wide image to match the command line behaviour.
- update dependencies
- fix command line option "--width" type: #13, thank you https://github.com/haochenx
- add:
--title
option to cli. Thank you https://github.com/ilyagr - fix: revert erroneous removal of
_resolveWidth
- Use
tempfile
to manage temporary files - Update tests
- Implement feature: choose custom title text enhancement (#7)
- Implement feature: custom width from the CLI enhancement (#6)
Note that the width
param overrides wide
eg. in the case
ansiToSVGRender(fancyHelloWorld, f"{THISDIR}/data/hwT20.svg.png", wide=True, width=20)
the width of the output is 20
chars
Other examples:
ansiToSVGRender(fancyHelloWorld, f"{THISDIR}/data/hw20.svg.png", width=20)
ansiToSVGRender(fancyHelloWorld, f"{THISDIR}/data/hwT20.svg.png", wide=True, width=20)
ansiToSVGRender(fancyHelloWorld, f"{THISDIR}/data/hw40test.svg.png", width=40, title="test")
- Add tox config
- Use playwright and install_playwright in-place of pyppeteer
-
Add custom width by passing
width
to render functions. Thanks https://github.com/punctuations (#4)eg.
ansiToSVG(cat, f"{THISDIR}/data/cat.svg", width=100)
- Use rich to do the heavy lifting (see #3)
- Bump pillow version (CVE-2022-22815, CVE-2022-22816, CVE-2022-22817)
- Update deps
- Rename Raster functions to Render
- Add formal tests
- update deps
- add pre-commit
- use f-strings
- improve pyproject.toml
- reformat *.md
- Update pillow
- pyupgrade
- reformatted code
- update pyproject
- Update Pillow >= 8.1.1 due to high severity security vulnerabilities:
- CVE-2021-27923
- CVE-2020-35654
- CVE-2020-35653
- CVE-2021-27921
- CVE-2021-27922
- CVE-2020-35655
- Fix unclosed file warnings
- Optimize svg file size by omitting xml:space: preserve on elements without spaces
- Use font-weight 300
- Update dependencies
- Add 'wide' parameter to renderers (enabled by default)
- true: width of 89, false: width of 49
- Run from the command line with
ansitoimg
- set stdout to utf-8
- Added typing (so dropping python < 3.7)
- Support sgi chars in the form ESC[0Xm - fixing quite a lot of bugs
- Excess spaces are now rendered in svg and html
- scale html better to mobile
- add min width of 70 chars for html
- Change default theme value to None and check for none when reading theme file
- use google fonts for Fira Code in html if not present
- bugfix bgColour sizes for ansiToSVG and ansiToRaster
- added ansiToHTML
- added ansiToHTMLRaster
- added ansiToSVGRaster
- added ansiToRaster
- First release