Turn any image into ASCII art! (Easy Python PIL Tutorial)

preview_player
Показать описание
This Python beginner tutorial shows you how to use the Python Image Library to build a short, interactive script to convert any image to ASCII art using the Python Image Library.

***************************************

***************************************
ADDITIONAL BEGINNER RESOURCES:

6 Python Tips and Tricks YOU Should Know ►

Push- Up Bot?! Make a Discord Bot in Python [step-by-step tutorial] ►

How to Build HANGMAN in 10 Minutes (Python tutorial) ►

***************************************
Don’t forget to subscribe :)

STAY TUNED:
Рекомендации по теме
Комментарии
Автор

If you guys made it to the comments, let us know what images you turn (or want to turn) into a ASCII art!

KiteHQ
Автор

This is video is great. I have been critiquing my coding in an attempt to improve, and my style is similar to yours and works very well for clean clear writing and editing but doesn't seem to be the norm. I think that people could learn a lot from you. Thank you.

hobbycaptain
Автор

interesting quick weekend project to tinker with. thank you!

tanercoder
Автор

Great tutorial! To maintain the image aspect ratio in ascii format i modified the ratio line of code:
ratio = height / width / 1.65
Thank You!

martinmartin
Автор

Such an underrated channel
You deserve better

mohamedpedrou
Автор

Really cool video!
Would it be possible for you add a simple animation to visually explain what you are doing. Since i often find myself replaying parts of the video to get an idea what the code you wrote does.
Anyway, I recently found your channel, and i'm really enjoying your videos.

em_iiy
Автор

it was great, super cool library. thxs

GamaPerkasa
Автор

Hi Kite, I’m trying to use a livestream webcam, possibly around 1 sample per second, and covert the text in a defined region to ASCII to be stored in a csv. I’m very very new to python and so I’m wondering if you know how I might go about that

financerunner
Автор

For the aspect ratio to work you need to account for the character dimensions.

tqracing
Автор

Was thinking about this few weeks ago wondering how it's been done

josephololade
Автор

you went a little too fast but after making youtube play it at 0.75 speed this tutorial was amazing, thanks

seamuskills
Автор

how do I make the lines larger than 100 characters, I tried changing this line larger than 100 but that didn't make a difference.
resize_image(image, new_width=1680): any thoughts on how to make this bigger ?

mdg
Автор

Hey could you help? I'm having trouble with the import PIL.Image. I've tried looking everywhere and see no info about how to get it to work

xchef
Автор

I managed to get work with image sets, as an animation of ASCII characters.

I added a few more input variables like number of images and image type, and added a frame delay so that it would print to the console with distinct frames instead of being to fast for the human eye.

The animation frames will just go on loop, because I though it would be underwhelming if it just showed the animation one time.

Spenpai
Автор

UnboundLocalError: local variable 'image' referenced before assignment

someone can help me??

jeffever
Автор

Ok, so I followed everything and I also had to install PILLOW module because PIL.Image is not an pre-installed package. And I also run the program and it runs smoothly but when showing the output it basically does nothing but show some dots, it looks nothing like the image I entered. I dont know why this is happening. Is it because I am using IDLE interpreter? If anyone knows why this is happening do let me know

salmalichattopadhyay
Автор

How do u know that u need to do a floor division by 25?

younsrl
Автор

The main function is kinda sketchy.

Three level function argument passing doesn’t look that good. Anyone have that PEP reference for this?

Thaf list comprehension compromises readability.

abdullahabd
Автор

can i initialize utf32 / unicode too . if it is what should write

karmitfrog
Автор

im getting a few errors saying it has no attribute convert or getdata

thereedededge