text-image-ti-software 0.1.0__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.
- text_image_ti_software-0.1.0/LICENSE +0 -0
- text_image_ti_software-0.1.0/PKG-INFO +31 -0
- text_image_ti_software-0.1.0/README.md +6 -0
- text_image_ti_software-0.1.0/pyproject.toml +3 -0
- text_image_ti_software-0.1.0/setup.cfg +4 -0
- text_image_ti_software-0.1.0/setup.py +24 -0
- text_image_ti_software-0.1.0/text_image_ti_software/__init__.py +3 -0
- text_image_ti_software-0.1.0/text_image_ti_software/ti_software.py +27 -0
- text_image_ti_software-0.1.0/text_image_ti_software.egg-info/PKG-INFO +31 -0
- text_image_ti_software-0.1.0/text_image_ti_software.egg-info/SOURCES.txt +12 -0
- text_image_ti_software-0.1.0/text_image_ti_software.egg-info/dependency_links.txt +1 -0
- text_image_ti_software-0.1.0/text_image_ti_software.egg-info/requires.txt +2 -0
- text_image_ti_software-0.1.0/text_image_ti_software.egg-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: text-image-ti-software
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A module designed to create images from text.
|
|
5
|
+
Author: Milo Carlson, Graham Hodges
|
|
6
|
+
Author-email: milopcarlson@gmail.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: Pillow
|
|
15
|
+
Requires-Dist: rich
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: requires-python
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
The Text Image (TI) Software
|
|
27
|
+
is dysigned oto turn a image (PNG,JPEG,WEBP,ect.),
|
|
28
|
+
into a copy & pasteable file.
|
|
29
|
+
This may often include making pixel art
|
|
30
|
+
from a photo or texting someone a photo
|
|
31
|
+
when the opption is not avayable.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# setup.py
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
|
|
4
|
+
setup(
|
|
5
|
+
name="text-image-ti-software",
|
|
6
|
+
version="0.1.0",
|
|
7
|
+
author="Milo Carlson, Graham Hodges",
|
|
8
|
+
author_email="milopcarlson@gmail.com",
|
|
9
|
+
description="A module designed to create images from text.",
|
|
10
|
+
long_description=open("README.md", encoding="utf-8").read(),
|
|
11
|
+
long_description_content_type="text/markdown",
|
|
12
|
+
packages=find_packages(include=["text_image_ti_software", "text_image_ti_software.*"]),
|
|
13
|
+
install_requires=[
|
|
14
|
+
"Pillow",
|
|
15
|
+
"rich",
|
|
16
|
+
],
|
|
17
|
+
classifiers=[
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.7",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
],
|
|
23
|
+
python_requires='>=3.7',
|
|
24
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
def render_image(image_path, r_width, r_height):
|
|
2
|
+
from PIL import Image
|
|
3
|
+
from rich import print
|
|
4
|
+
image = image_path
|
|
5
|
+
if not image:
|
|
6
|
+
raise SystemExit("No image path provided.")
|
|
7
|
+
|
|
8
|
+
img = Image.open(image).convert("RGB")
|
|
9
|
+
img = img.resize((r_width, r_height), Image.NEAREST)
|
|
10
|
+
width, height = img.size
|
|
11
|
+
pixels = img.load()
|
|
12
|
+
|
|
13
|
+
pixel_list = []
|
|
14
|
+
for y in range(height):
|
|
15
|
+
for x in range(width):
|
|
16
|
+
pixel_list.append(pixels[x, y])
|
|
17
|
+
|
|
18
|
+
with open(".txt", "w", encoding="utf-8") as file:
|
|
19
|
+
for item in pixel_list:
|
|
20
|
+
file.write(f"{item}\n")
|
|
21
|
+
#Sending code to file
|
|
22
|
+
|
|
23
|
+
for index, (r, g, b) in enumerate(pixel_list):
|
|
24
|
+
if index != 0 and index % width == 0:
|
|
25
|
+
print()
|
|
26
|
+
print(f"[rgb({r},{g},{b})]𪚥[/rgb({r},{g},{b})]", end="")
|
|
27
|
+
print()
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: text-image-ti-software
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A module designed to create images from text.
|
|
5
|
+
Author: Milo Carlson, Graham Hodges
|
|
6
|
+
Author-email: milopcarlson@gmail.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: Pillow
|
|
15
|
+
Requires-Dist: rich
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: requires-python
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
The Text Image (TI) Software
|
|
27
|
+
is dysigned oto turn a image (PNG,JPEG,WEBP,ect.),
|
|
28
|
+
into a copy & pasteable file.
|
|
29
|
+
This may often include making pixel art
|
|
30
|
+
from a photo or texting someone a photo
|
|
31
|
+
when the opption is not avayable.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.cfg
|
|
5
|
+
setup.py
|
|
6
|
+
text_image_ti_software/__init__.py
|
|
7
|
+
text_image_ti_software/ti_software.py
|
|
8
|
+
text_image_ti_software.egg-info/PKG-INFO
|
|
9
|
+
text_image_ti_software.egg-info/SOURCES.txt
|
|
10
|
+
text_image_ti_software.egg-info/dependency_links.txt
|
|
11
|
+
text_image_ti_software.egg-info/requires.txt
|
|
12
|
+
text_image_ti_software.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
text_image_ti_software
|