ascii-art-python 0.2.3__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ascii_art_python
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A Python library and CLI tool for converting images and videos into ASCII art.
5
5
  Author-email: Guillem Prieur <prieurguillem38@gmail.com>
6
6
  Project-URL: Homepage, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python
@@ -16,7 +16,7 @@ from moviepy import VideoFileClip
16
16
  import numpy
17
17
  import time
18
18
 
19
- FONT = resources.files("ascii_art_python.assets.fonts").joinpath("KreativeSquare.ttf")
19
+ FONT = resources.files("ascii_art_python.assets.fonts").joinpath("KreativeSquareSM.ttf")
20
20
  ASCII_CHARS: list[str] = ["@", "$", "&", "#", "{", "*", "(", "=", ";", ":", ".", " "]
21
21
 
22
22
  class ExportType(IntEnum):
@@ -87,7 +87,7 @@ class ImageAscii:
87
87
  The export format (text or image), default is 0 (IMAGE_FILE).
88
88
  """
89
89
  if mode:
90
- with open(f"{filename}.txt", "w", encoding="utf-8") as f:
90
+ with open(f"{filename}.txt", "w", encoding="ascii") as f:
91
91
  f.write(str(self))
92
92
  else:
93
93
  self.to_image().save(f"{filename}.png")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ascii_art_python
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A Python library and CLI tool for converting images and videos into ASCII art.
5
5
  Author-email: Guillem Prieur <prieurguillem38@gmail.com>
6
6
  Project-URL: Homepage, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python
@@ -10,4 +10,5 @@ ascii_art_python.egg-info/dependency_links.txt
10
10
  ascii_art_python.egg-info/requires.txt
11
11
  ascii_art_python.egg-info/top_level.txt
12
12
  ascii_art_python/assets/fonts/KreativeSquare.ttf
13
+ ascii_art_python/assets/fonts/KreativeSquareSM.ttf
13
14
  ascii_art_python/assets/fonts/OFL.txt
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ascii_art_python"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  authors = [
9
9
  { name="Guillem Prieur", email="prieurguillem38@gmail.com" },
10
10
  ]