Last active 2 months ago • Forked from meownexus/gist:3ea9e595973a43758f8169db9cfd0815
"Message from ##chat (moved to ##sweezero), captured by Susse (in ##sweezero)"
| 1 | <u01rsa> YOOOO ( 'O')o ඞ \( 'O' ) YOOOOOO |
| 2 | <u01rsa> (yes, 2 braincells were lost in the making of the above vomit-code I just released unto this channel) |
meownexus / gist:305ae739a9a7492f97861951c1384f24
0 likes
0 forks
1 files
Last active 2 months ago
"Message from ##sweezero, captured by Susse"
| 1 | <Susse> <u01rsa> (yes, 2 braincells were lost in the making of the above vomit-code I just released unto this channel) |
meownexus / gist:3ea9e595973a43758f8169db9cfd0815
0 likes
1 forks
1 files
Last active 2 months ago
"Message from ##sweezero, captured by Susse"
| 1 | <Susse> <u01rsa> YOOOO ( 'O')o ඞ \( 'O' ) YOOOOOO |
swee / Image to IRC
0 likes
0 forks
1 files
Last active 2 months ago
Converts an image to half-block ascii art with IRC color codes. Uses some code from SCIFv1
| 1 | from PIL import Image |
| 2 | import requests |
| 3 | from io import BytesIO |
| 4 | imraw = requests.get("https://cdn.swee.codes/charimgs/altsweecat5.png").content |
| 5 | im = Image.open(BytesIO(imraw)).convert("RGBA") |
| 6 | if im.width > 64: |
| 7 | new_height = int((64 / im.width) * im.height) |
| 8 | im = im.resize((64, new_height)) |
| 9 | px = im.load() |
| 10 | sz = im.size |