Skip to content

Releases: FHPythonUtils/AnsiToImg

2024.2

17 Mar 17:21
Compare
Choose a tag to compare

2024.2 - 2024/03/17

  • code quality improvements
  • use ruff format
  • fix --width

2024.1

07 Jan 22:41
Compare
Choose a tag to compare

2024.1 - 2024/01/07

  • Breaking Change to ansiTo.* functions removing wide= option

    Note:

      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 only ansiText and a fileName will result in a 49 char wide image compared to the previous 89 char wide image to match the command line behaviour.

2024

07 Jan 20:16
Compare
Choose a tag to compare

2024 - 2024/01/07

  • update dependencies

2023.3.1

01 Dec 19:47
Compare
Choose a tag to compare

2023.3 - 2023/12/01

2023.3

30 Aug 17:21
Compare
Choose a tag to compare

2023.3 - 2023/08/30

2023.2

28 Aug 16:55
Compare
Choose a tag to compare

2023.2 - 2023/08/28

  • Use tempfile to manage temporary files
  • Update tests

2023.1

07 Mar 00:21
Compare
Choose a tag to compare

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

08 Jan 21:52
Compare
Choose a tag to compare

2023 - 2023/01/08

  • Add tox config
  • Use playwright and install_playwright in-place of pyppeteer

2022.2

02 Sep 18:50
Compare
Choose a tag to compare

2022.2 - 2022/069/02