hermantenuki / ascii-generator.site Goto Github PK
View Code? Open in Web Editor NEWDjango website for generating ASCII-arts out of images or text ๐จ
Home Page: https://ascii-generator.site
License: MIT License
Django website for generating ASCII-arts out of images or text ๐จ
Home Page: https://ascii-generator.site
License: MIT License
It is ugly for now with those links and switchers on both sides, maybe drop down menu for links will be better.
For now, if image is deleted on server in "_images/temporary/" folder, but user still have it opened, settings will no more work and all will be frozen without any errors displaying. This looks not right.
(Images are auto-deleting in 24-25 hours after upload).
On resolution higher than full hd, footer has fixed position and it's bottom line is missing
Color output would be useful, especially if it enables copying shell formatting.
If user is on page with language code in url, like ascii-generator.site/ru/about/
- he can't change language manually with buttons in lower right corner.
P.S. Also when submitting ascii-generator.site/ru
link with language code - it's working, but there is no /
slash at the end.
{% url 'feedback_url' as URL_feedback_url %}
...
<a href="{{ URL_feedback_url }}">Feedback</a>
Leads to "About" page.
Maybe it's because first line out of {% block content %}
, when last ins't.
Additional "Twitch mode" checkbox under image and text generators, so output arts can perfectly fill twitch chat (for the pastas).
In #39 numba was added to img2ascii generators.
On 4 cores system it is improving speed by 100%-300%, while on single-core system it actually works with 70%-100% speed.
Numba is disabled by default in project/settings.py, can be enabled with environment variable NUMBA = "True"
.
Need to improve this situation and make a project faster with numba on different configs without getting a lot of unstable problems and warnings.
Image to ASCII generator is working with caching to optimize "share" functionality and overall generator's usage.
On a server, for some unknown reason, it's working randomly and it can sometimes don't write in cache and can sometimes don't read from cache.
Locally it works fine.
Possible reasons:
requirements.txt
needs to contain only minimal-needed modules to run website locally, the other file requirements_dev.txt
needs to contain all modules.
Image to ASCII generator is working with caching to optimize "share" functionality and overall generator's usage.
On a server, for some unknown reason, it's working randomly and it can sometimes don't write in cache and can sometimes don't read from cache.
Locally it works fine.
Possible reasons:
For some reason, chromium rendering Unicode-blocks poorly regardless of what font is used.
If we try to create art with Unicode-blocks in a monospace font, chromium will always leave some weird lines between symbols.
For example, let's compare Google Chrome and Firefox browsers:
I improved this issue by detecting Chromium in JavaScript and applying some styling:
if (window.chrome) {
art_div.css({
'letter-spacing': '-0.1em',
'line-height': '1.2em',
'transform': 'scale(1.2, 1) translateX(8%)'
});
}
Let's look again at the examples:
Now you can see that situation is a lot better, but Chromium still displaying art differently. If you look at the letters in both arts (especially "b"), Chromium's blocks are blurring or, like, floating to the upper side.
ASCII-Generator.site/app/services.py
Lines 112 to 117 in e30ec82
For now, when arts is being saved, all the generated ASCII results is being saved separately in different row in database. So, for the Text to ASCII generator we need to save 300+ different rows separately, so as when we need to load them - we need to request 300+ different rows.
That's not optimized at all, need to migrate to some new DB structure, where all arts is saved in one row in some array or JSON form.
Due to LESS being used, there is no reason to keep not-minified compiled CSS code
Steps:
picture.png
to "Image to ASCII";picture.png
.In these steps, nothing will happen at the end. Image won't be uploaded.
If you will try to upload other_picture.png
at the step 3, it will work normally.
Need to fix it by re-uploading image or just opening last already rendered result (maybe it would be better).
All the enumerated action buttons could be pre-translated, instead of translating them again
Hover is having more priority than disabled
Images like image.JPG
or image.PNG
are being detected as wrong file types.
I have loved using the generator but it seems like for the last two days the site is down?
Minor suggestion, but would it be easy to fix the "pixel size" on the image2ascii page so that they are not in a floating position, and do not move as the pixel size changes?
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.