Комментарии:
Hello, I have figured out the solution for the issue of converting some png images. It used to fail the process with only 32 bit png files because it cannot process the alpha channel of 32 bit depth. So just a simple solution is to change the line no.21 "im = Image.open('file.png')" with "im = Image.open('file.png').convert('RGB')" which will simply remove any alpha channel from the image.
Ответить▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ▒▒▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██░░ ░░▒▒▒▒░░ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░░░░░░░░░ ░░▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░░░░░░░░░ ░░▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░██ ▓▓▒▒████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░░ ██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░░ ▒▒ ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒██░░ ██▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██░░ ██▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░ ░░░░▒▒░░ ░░▓▓▓▓▒▒
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░░░▓▓
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ░░░░ ██
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ██████ ▒▒▒▒▒▒▒▒ ██
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ▓▓▒▒▒▒██▓▓ ▒▒▒▒▒▒▒▒ ██
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ██░░████ ██ ▒▒▒▒▒▒▒▒ ██▒▒
▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ██▓▓████ ██ ▒▒▒▒▒▒░░ ██▒▒
▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒██ ████▒▒██▓▓▓▓██ ▒▒▒▒░░ ▒▒▓▓▒▒
▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒██ ░░████████░░██ ░░░░ ██▒▒▒▒
▒▒▒▒▒▒██ ██▒▒▒▒████████ ░░▒▒▒▒████████░░ ██▓▓▓▓ ▓▓▓▓▒▒▒▒
▒▒▒▒▒▒██ ██▒▒██ ██ ░░▒▒▒▒░░ ██ ░░████ ▓▓▒▒▒▒▒▒▒▒
▒▒▒▒▒▒██ ████ ██ ░░░░ ▒▒ ████ ██░░██ ▓▓▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒██ ██ ██ ██░░██████░░██ ██▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒██ ████ ████░░████░░██ ██▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒██ ░░░░ ████▓▓████▓▓▒▒ ██▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒██ ████████▒▒░░░░ ▒▒▓▓▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒████ ░░▒▒▒▒░░ ██▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ░░░░ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ▓▓██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██████████████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ████ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██ ▓▓██ ░░░░▓▓ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ██ ░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████ ██ ██ ██ ██ ██ ██ ██ ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████████████▒▒████████████▒▒████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
I'm stuck on how Python is able to get the amount of pixels/dimensions
Ответитьhow do i add the image to the thing
i've got a jpeg, but i have no clue on how to add the image onto the project
I installed Pillow but its telling me that there isnt a module named "PIL"?
Ответитьcan i make it using google collabs?
Ответитьhelp, my ver wont run and it's throwing a error
Ответитьlol u aslo copy paste programmer
Ответитьi am running this in visual studio code idk where my out put is
ОтветитьWhat is your IDE?
ОтветитьThank you, guy! But I have one problem: how to print output on terminal instead of render png file? Thank again.
ОтветитьDude this is awesome! I cannoy believe that this program was made in Python :0
ОтветитьHow could you directly call the image file instead of changing the link within the source each time?
like:
asciipy image1.jpg new_outputnamehere.txt/jpg/md/whatever. or just cat output to terminal??
l.,cxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
k. 'x00KNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNKkoc:oXMMMMM
Wk' .dK0OOOKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXK0OOo. .dNMMMMM
MMK:.c0KKK0kk0NMMMMMMMMMMMMMMMMMMMMMMMMMNKOOO0KKl. .xWMMMMMM
MMMNxcxKKKKK0kx0WMMMMMMMMMMMMMMMMMMMMWX0OO0KKKKO,.:0WMMMMMMM
MMMMMXOkOKKKKK0kOXMMMWNXXXXXXXNNWWMWX0O0KKKKKK0dlOWMMMWXK00O
MMMMMMW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OOKKkONMMMMMMMMMMMMMM
MMMMMKkkOkx0KOk0KKKKKKKKkx0KkkKKKKKKKK0xOKKOdO0OKWMMMMMMMMMM
MMMMMXxdxkkOKKxx0KKKKKKKkdkkxOKKKKKKK0xkKKOkxkxd0WMMMMMMMMMM
MMMMMMNOodxkOK0xx0KKKKKKkoddokKKKKKK0xx0K0kkxdxKWMMMMMMMMMMM
MMMMMMMWKxddxkkxodOKKKKKxoddokKKKKK0dokOOkxodONMMMMMMMMMMMMM
MMMMMMMMMN0xdddodddk00OOkkOOxk0000OdoodddodOXMMMMMMMMMMMMMMM
MMMMMMMMMMMNOxxO0KKOOOO0NWMMWKOOOkkOOdlodkNMMMMMMMMMMMMMMMMM
Hai,how to copy the path of the font?
Ответитьi dont understand what [::-1] does
you need to know i am very old
Bro, i love the way u code
ОтветитьTyvm, i actually learnt some concepts of image processing
Ответитьim using pycharm to run this code..
but im not getting any output..
Awesome i love python very nice video. Very cool. i subscribe to your channel. excuse my english im French .
ОтветитьGreat job!
Ответить┋╭━━╮┋╱▔▔▔▔▔▔╲┋┋
╭╯┅▊┃▕╳╳╳R.I.P╳╳╳╲┋
╰━┳╯┃▕╳╳LONESOME╳╳╲
┋┋┃╯╰━╲╳╳GEORGE╳╳╱
┋┋╰━╱▔▔╲╳╳╳╳╳╳╱▏
┋┋┋▕┅▕━━╲▂▂▂▂╱┅▏
┋┋┋▕▂▂▏┋┋┋┋┋▕▂▂▏
Is it possible to generate more pictures at the same time? For example, I have 100 images named 1.png, 2.png etc and would like to convert them to ascii faster than individually. What would I have to do in this case?
ОтветитьWho can write that all codes to here
ОтветитьAwesome ... It's like listening to the inside of my head while I'm coding LOL
ОтветитьOh, your coding skell is bad, though I loved the output.
ОтветитьHey just couldn't understand why do we use load? Is it similar to image.getdata
Ответитьno module PIL found ???
ОтветитьImpressive! Man did u do it by your now? i mean did you check stackoverflow? im new to coding and these blows my mind! very abstract!
Ответитьhow to fix
too many values to unpack?
Dude this is Gold!!❤❤
ОтветитьHey, man. Could you tell me how to pass your code so that the resulting image is black and white, not color?
ОтветитьAwesome job!! I subbed...
ОтветитьКруто, мужик! Я очень впечатлён.
Very cool man! I'm impressed.
Nice video! but I have some problem following your intructions. I typed the exact thing like you and my txt file looks like its extended in up and down side.
what would be wrong with my file...? Also it seems side part of the characters are torn away
New sub love your content!
Ответить