Zero to Mastery Open Source
zero-to-mastery / ascii-art-2021 Goto Github PK
View Code? Open in Web Editor NEWA ZTM Challenge for Hacktoberfest 2021, converting images into text using the 95 printable characters defined by the ASCII Standard
A ZTM Challenge for Hacktoberfest 2021, converting images into text using the 95 printable characters defined by the ASCII Standard
Expected: Downloading should always save the displayed ascii.
To replicate:
The saved image has the default image - ZTM logo - instead of the new image.
Add automated testing to ensure it works as intended after changes are made
I believe that the "" need to be replaced by a ,
Originally posted by @ndeoligence in #42 (comment)
Add logging to assist with debugging. Here is a blog on logging for those who have never done it before.
Convert the ASCII file from .txt to .png or any other image format
I think this would be much easier if anyone using wants to set the file as their wallpaper, etc.
After an update to app.py dotenv needs adding to requirements.txt.
Cheers
Bob
Unable to find directory error in flask app --> Choose file form
More than adding issues it would be better to have a discussion tab.
With best regards,
Should I deploy this project or is zero-to-mastery going to host this project ?
I'd like to use Poetry for this.
But I'll add a requirements file - for anyone unfamiliar, so it's beginner-friendly.
But Poetry should help with packaging, since some GUI implementations might wanna add this as a dependency.
Animation of The ASCII.
I think that would look really nice and it would be much better than downloading this.
With best regards,
Ranuga
I added default directories to the keyfile for both gui.py
and app.py
.
I was able to successfully test gui.py
.
However, I need additional guidance/documentation on how to correctly initialize the webapp for app.py
. Even when running from master
I encounter errors due to not having the root directory './webapp/*'
. I used both flask run
and python app.py
to initialize the webapp. Are there other steps necessary for the webapp to initialize the default directory?
Update(2021-10-09_21:05ct): I manually created the directories ./webapp/*
and was able to successfully execute the app.
Originally posted by @ckosa in #42 (comment)
How can I help with this project?
I would recommend adding a project tab for this repo so we can see what is to do and what is currently doing and what is done.
I think it would be really easy for new contributors.
With best regards,
Ranuga
The code currently always produces an ascii file when you run it. Which is not cool if you just want it printed out. In fact, there's no way to stop the file from being written to disk. And other will add more functionality soon.
We need a way to tell the program what to do when calling it. This is usually done using command-line arguments. (Like how you can call python like this: python -m venv /path/to/venv
We need a way for our program to handle the same type of input. Something like: ./community-version.py --image example/ztm-logo.png --output ztm-logo.txt
That would tell it to open the ztm-logo.png and write the ascii to ztm-logo.txt. When run without --output, maybe it should just print to stdout
It might be fun if the user can change the ascii key .txt file via the app and change the look of the output.
Other Python Projects in zero-to-mastery
This is a side question
Hosting
I can host this project in Heroku if we need to.
Should we host this now or should we wait for some more time?
With best regards,
Ranuga
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.