generates ASCII artistic character map online

Keywords: Docker IDE

What is is a Django website for generating ASCII art character maps from images or text 🎨

What is Django?

Django is a free and open source WEB program framework written in Python, which adopts the framework mode of MTV, namely model M, view V and template T. It can help you develop WEB sites faster and easier.

Official experience address:


Install in Docker mode on Qunhui.

Search for ASCII Gen in the registry, select the first wbsu2003 / ASCII gen, and select the latest version.


The default port 1234 is used directly

Local portContainer port


Enter http: / / Qunhui IP:1234 in the browser to see the main interface. Here is the privacy policy. Click I Agree

Image to ASCII

Image to ASCII or Text to ASCII can be selected at the top. The default is image to ASCII. Select a black-and-white picture

For the convenience of explanation, Lao Su processed the official moving picture and divided it into several paragraphs

Try the color map

Old Su uploaded a picture of a star. Can you see who it is?

The answer is revealed at the end of the article

Text to ASCII

Text to ASCII only needs to input transformed text, but Chinese is not supported

Continue moving graph

Build mirror

Considering that most people are not interested in building, Lao Su put the building part behind this time

Dockerfile is built based on the project source code and has made a lot of optimizations. The main reason is that it has been replaced with domestic sources to solve the problems of slow construction and unsuccessful construction. In addition, the image has been reduced from 2G to 1G. Later, it will become the template for Lao Su to build Python and Django projects

I feel there is still room for further optimization. Take your time

FROM python:3.8-slim
LABEL maintainer=laosu<>

# set work directory
COPY ./requirements.txt /ags

# set environment variables

## Prevent Python from copying pyc files into containers
# Ensure that Python output is logged to the terminal so that Django logs can be monitored in real time.

# Environment
# Replaceable source:
# 1. Aliyuan:
# 2. Tsinghua source:
# 3. Netease:
#RUN sed -i s@/ /etc/apt/sources.list \
RUN sed -i s@/ /etc/apt/sources.list \
    && rm -Rf /var/lib/apt/lists/* \
    && apt-get clean \
    && apt-get -y update --fix-missing -o Acquire::http::No-Cache=True \
    && apt-get install -y python3-pip python3-opencv libpq-dev 

# Replaceable source:
# 1. Tsinghua source:
# 2. Douban source:
# 3. Alibaba source:
# 4. Tencent source:
RUN pip install --upgrade pip -i --trusted-host \
   && pip install -r requirements.txt

# copy project
COPY . /ags
RUN chmod +x

# Application

CMD ["python", "", "runserver", ""]

The basic commands for building images and running containers are as follows 👇

# Download code
git clone ags

# Or mirror the site
git clone ags

# Enter directory
cd ags

# Put the 'Dockerfile' file in the code root directory

# Modify the project/ file
# 1. Set EASY_RUN_MODE is set from False to True
# 2. Set TIME_ZONE='UTC 'changed to ` Asia/Shanghai`

# Build mirror
docker build -t wbsu2003/asciigen:v1 .

# Run container
docker run -d \
--name=wbsu2003-asciigen1 \
-p 1234:1234 \

The answer is revealed

Reference documents

hermanTenuki/ Django website for generating ASCII-arts out of images or text 🎨

Running apt get update in docker reports an error returned a non zero code: 100 - rioka - blog Garden

How to Create Django Docker Images | Engineering Education (EngEd) Program | Section

Posted by rajns on Thu, 18 Nov 2021 23:20:35 -0800