Releases: FHPythonUtils/AnsiToImg
Releases · FHPythonUtils/AnsiToImg
2024.2
2024.1
2024.1 - 2024/01/07
-
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
ansiToSVGwith onlyansiTextand afileNamewill result in a 49 char wide image compared to the previous 89 char wide image to match the command line behaviour.
2024
2024 - 2024/01/07
- update dependencies
2023.3.1
2023.3 - 2023/12/01
- fix command line option "--width" type: #13,
thank you https://github.com/haochenx
2023.3
2023.3 - 2023/08/30
- add:
--titleoption to cli. Thank you https://github.com/ilyagr - fix: revert erroneous removal of
_resolveWidth
2023.2
2023.2 - 2023/08/28
- Use
tempfileto manage temporary files - Update tests
2023.1
2023.1 - 2023/03/07
- 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")2023
2023 - 2023/01/08
- Add tox config
- Use playwright and install_playwright in-place of pyppeteer
2022.2
2022.2 - 2022/069/02
-
Add custom width by passing
widthto render functions. Thanks https://github.com/punctuations
(#4)eg.
ansiToSVG(cat, f"{THISDIR}/data/cat.svg", width=100)