diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a1652b6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Release + +on: [push, workflow_dispatch] + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Build artifacts + run: | + python ./src/generate.py + zip -r dist.zip ./dist + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: artifacts + path: ./dist.zip + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ./dist/* + name: Release ${{ github.ref }} + draft: false + prerelease: false + fail_on_unmatched_files: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48f08f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,272 @@ +# Created by https://www.toptal.com/developers/gitignore/api/python,windows,macos,linux,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=python,windows,macos,linux,visualstudiocode + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +### Python Patch ### +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + +# ruff +.ruff_cache/ + +# LSP config files +pyrightconfig.json + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/python,windows,macos,linux,visualstudiocode + + +# Project specific ignores diff --git "a/\344\270\211\346\236\201\351\232\266\344\271\246\347\256\200\344\275\223.ttf" "b/assets/\344\270\211\346\236\201\351\232\266\344\271\246\347\256\200\344\275\223.ttf" similarity index 100% rename from "\344\270\211\346\236\201\351\232\266\344\271\246\347\256\200\344\275\223.ttf" rename to "assets/\344\270\211\346\236\201\351\232\266\344\271\246\347\256\200\344\275\223.ttf" diff --git a/generate.py b/generate.py deleted file mode 100644 index 34462df..0000000 --- a/generate.py +++ /dev/null @@ -1,24 +0,0 @@ -from PIL import Image, ImageDraw, ImageFont -import os - -LETTERS = '典孝急乐麻批蚌绷盒赢输对退寄创绝秀谔鼠兔神殖友人躺卷润狂图了献忠支洼爆死歇反共中美日韩党雅俗佛草逼冲浪汗包子习毛腊偷傻善编恰哈拉摇晶哥粪钓灵车软硬抄爬原马唉资本我爹爷拳' - -FONT = ImageFont.truetype('三极隶书简体.ttf', 650) - -os.makedirs('small', exist_ok=True) -os.makedirs('large', exist_ok=True) - -i = 0 -for letter in LETTERS: - i += 1 - image = Image.new('RGBA', (1000, 1000), (0, 0, 0, 0)) - - draw = ImageDraw.Draw(image) - draw.ellipse((10, 10, 990, 990), outline='black', fill='white', width=30) - draw.ellipse((80, 80, 920, 920), outline='black', fill='white', width=60) - draw.text((500, 410), letter, fill='black', anchor='mm', font=FONT) - - image.resize((100, 100), Image.LANCZOS).save( - f'small/{i:03d}_{letter}.png') # for emoji - image.resize((512, 512), Image.LANCZOS).save( - f'large/{i:03d}_{letter}.png') # for sticker diff --git "a/large/001_\345\205\270.png" "b/large/001_\345\205\270.png" deleted file mode 100644 index a4a9f1c..0000000 Binary files "a/large/001_\345\205\270.png" and /dev/null differ diff --git "a/large/002_\345\255\235.png" "b/large/002_\345\255\235.png" deleted file mode 100644 index 9de8a6e..0000000 Binary files "a/large/002_\345\255\235.png" and /dev/null differ diff --git "a/large/003_\346\200\245.png" "b/large/003_\346\200\245.png" deleted file mode 100644 index 0f94674..0000000 Binary files "a/large/003_\346\200\245.png" and /dev/null differ diff --git "a/large/004_\344\271\220.png" "b/large/004_\344\271\220.png" deleted file mode 100644 index 28e8c08..0000000 Binary files "a/large/004_\344\271\220.png" and /dev/null differ diff --git "a/large/005_\351\272\273.png" "b/large/005_\351\272\273.png" deleted file mode 100644 index 58e90fa..0000000 Binary files "a/large/005_\351\272\273.png" and /dev/null differ diff --git "a/large/006_\346\211\271.png" "b/large/006_\346\211\271.png" deleted file mode 100644 index d3559e8..0000000 Binary files "a/large/006_\346\211\271.png" and /dev/null differ diff --git "a/large/007_\350\232\214.png" "b/large/007_\350\232\214.png" deleted file mode 100644 index 8c6b012..0000000 Binary files "a/large/007_\350\232\214.png" and /dev/null differ diff --git "a/large/008_\347\273\267.png" "b/large/008_\347\273\267.png" deleted file mode 100644 index bd4f63e..0000000 Binary files "a/large/008_\347\273\267.png" and /dev/null differ diff --git "a/large/009_\347\233\222.png" "b/large/009_\347\233\222.png" deleted file mode 100644 index 11616ae..0000000 Binary files "a/large/009_\347\233\222.png" and /dev/null differ diff --git "a/large/010_\350\265\242.png" "b/large/010_\350\265\242.png" deleted file mode 100644 index 091a293..0000000 Binary files "a/large/010_\350\265\242.png" and /dev/null differ diff --git "a/large/011_\350\276\223.png" "b/large/011_\350\276\223.png" deleted file mode 100644 index e47c44d..0000000 Binary files "a/large/011_\350\276\223.png" and /dev/null differ diff --git "a/large/012_\345\257\271.png" "b/large/012_\345\257\271.png" deleted file mode 100644 index eacd903..0000000 Binary files "a/large/012_\345\257\271.png" and /dev/null differ diff --git "a/large/013_\351\200\200.png" "b/large/013_\351\200\200.png" deleted file mode 100644 index 3a6a93e..0000000 Binary files "a/large/013_\351\200\200.png" and /dev/null differ diff --git "a/large/014_\345\257\204.png" "b/large/014_\345\257\204.png" deleted file mode 100644 index c7f4df0..0000000 Binary files "a/large/014_\345\257\204.png" and /dev/null differ diff --git "a/large/015_\345\210\233.png" "b/large/015_\345\210\233.png" deleted file mode 100644 index 6782345..0000000 Binary files "a/large/015_\345\210\233.png" and /dev/null differ diff --git "a/large/016_\347\273\235.png" "b/large/016_\347\273\235.png" deleted file mode 100644 index a385ea7..0000000 Binary files "a/large/016_\347\273\235.png" and /dev/null differ diff --git "a/large/017_\347\247\200.png" "b/large/017_\347\247\200.png" deleted file mode 100644 index a47a9d7..0000000 Binary files "a/large/017_\347\247\200.png" and /dev/null differ diff --git "a/large/018_\350\260\224.png" "b/large/018_\350\260\224.png" deleted file mode 100644 index d712eae..0000000 Binary files "a/large/018_\350\260\224.png" and /dev/null differ diff --git "a/large/019_\351\274\240.png" "b/large/019_\351\274\240.png" deleted file mode 100644 index 37c2d6f..0000000 Binary files "a/large/019_\351\274\240.png" and /dev/null differ diff --git "a/large/020_\345\205\224.png" "b/large/020_\345\205\224.png" deleted file mode 100644 index 3cbf0aa..0000000 Binary files "a/large/020_\345\205\224.png" and /dev/null differ diff --git "a/large/021_\347\245\236.png" "b/large/021_\347\245\236.png" deleted file mode 100644 index bd5c08b..0000000 Binary files "a/large/021_\347\245\236.png" and /dev/null differ diff --git "a/large/022_\346\256\226.png" "b/large/022_\346\256\226.png" deleted file mode 100644 index 07de96a..0000000 Binary files "a/large/022_\346\256\226.png" and /dev/null differ diff --git "a/large/023_\345\217\213.png" "b/large/023_\345\217\213.png" deleted file mode 100644 index a7d4c20..0000000 Binary files "a/large/023_\345\217\213.png" and /dev/null differ diff --git "a/large/024_\344\272\272.png" "b/large/024_\344\272\272.png" deleted file mode 100644 index 8a111d1..0000000 Binary files "a/large/024_\344\272\272.png" and /dev/null differ diff --git "a/large/025_\350\272\272.png" "b/large/025_\350\272\272.png" deleted file mode 100644 index e9aa660..0000000 Binary files "a/large/025_\350\272\272.png" and /dev/null differ diff --git "a/large/026_\345\215\267.png" "b/large/026_\345\215\267.png" deleted file mode 100644 index 6d665e3..0000000 Binary files "a/large/026_\345\215\267.png" and /dev/null differ diff --git "a/large/027_\346\266\246.png" "b/large/027_\346\266\246.png" deleted file mode 100644 index d2f2e03..0000000 Binary files "a/large/027_\346\266\246.png" and /dev/null differ diff --git "a/large/028_\347\213\202.png" "b/large/028_\347\213\202.png" deleted file mode 100644 index 6dd975b..0000000 Binary files "a/large/028_\347\213\202.png" and /dev/null differ diff --git "a/large/029_\345\233\276.png" "b/large/029_\345\233\276.png" deleted file mode 100644 index 0985d71..0000000 Binary files "a/large/029_\345\233\276.png" and /dev/null differ diff --git "a/large/030_\344\272\206.png" "b/large/030_\344\272\206.png" deleted file mode 100644 index b93ca0a..0000000 Binary files "a/large/030_\344\272\206.png" and /dev/null differ diff --git "a/large/031_\347\214\256.png" "b/large/031_\347\214\256.png" deleted file mode 100644 index e3f66c3..0000000 Binary files "a/large/031_\347\214\256.png" and /dev/null differ diff --git "a/large/032_\345\277\240.png" "b/large/032_\345\277\240.png" deleted file mode 100644 index fe32748..0000000 Binary files "a/large/032_\345\277\240.png" and /dev/null differ diff --git "a/large/033_\346\224\257.png" "b/large/033_\346\224\257.png" deleted file mode 100644 index e92d772..0000000 Binary files "a/large/033_\346\224\257.png" and /dev/null differ diff --git "a/large/034_\346\264\274.png" "b/large/034_\346\264\274.png" deleted file mode 100644 index 2893a08..0000000 Binary files "a/large/034_\346\264\274.png" and /dev/null differ diff --git "a/large/035_\347\210\206.png" "b/large/035_\347\210\206.png" deleted file mode 100644 index 6c9d9bf..0000000 Binary files "a/large/035_\347\210\206.png" and /dev/null differ diff --git "a/large/036_\346\255\273.png" "b/large/036_\346\255\273.png" deleted file mode 100644 index c6e58c5..0000000 Binary files "a/large/036_\346\255\273.png" and /dev/null differ diff --git "a/large/037_\346\255\207.png" "b/large/037_\346\255\207.png" deleted file mode 100644 index 8ac4906..0000000 Binary files "a/large/037_\346\255\207.png" and /dev/null differ diff --git "a/large/038_\345\217\215.png" "b/large/038_\345\217\215.png" deleted file mode 100644 index ea2a213..0000000 Binary files "a/large/038_\345\217\215.png" and /dev/null differ diff --git "a/large/039_\345\205\261.png" "b/large/039_\345\205\261.png" deleted file mode 100644 index 6b22114..0000000 Binary files "a/large/039_\345\205\261.png" and /dev/null differ diff --git "a/large/040_\344\270\255.png" "b/large/040_\344\270\255.png" deleted file mode 100644 index 356fdf4..0000000 Binary files "a/large/040_\344\270\255.png" and /dev/null differ diff --git "a/large/041_\347\276\216.png" "b/large/041_\347\276\216.png" deleted file mode 100644 index 625abdd..0000000 Binary files "a/large/041_\347\276\216.png" and /dev/null differ diff --git "a/large/042_\346\227\245.png" "b/large/042_\346\227\245.png" deleted file mode 100644 index faa089e..0000000 Binary files "a/large/042_\346\227\245.png" and /dev/null differ diff --git "a/large/043_\351\237\251.png" "b/large/043_\351\237\251.png" deleted file mode 100644 index 982b5e4..0000000 Binary files "a/large/043_\351\237\251.png" and /dev/null differ diff --git "a/large/044_\345\205\232.png" "b/large/044_\345\205\232.png" deleted file mode 100644 index e2a7863..0000000 Binary files "a/large/044_\345\205\232.png" and /dev/null differ diff --git "a/large/045_\351\233\205.png" "b/large/045_\351\233\205.png" deleted file mode 100644 index 3b8ecd8..0000000 Binary files "a/large/045_\351\233\205.png" and /dev/null differ diff --git "a/large/046_\344\277\227.png" "b/large/046_\344\277\227.png" deleted file mode 100644 index 72c5036..0000000 Binary files "a/large/046_\344\277\227.png" and /dev/null differ diff --git "a/large/047_\344\275\233.png" "b/large/047_\344\275\233.png" deleted file mode 100644 index 2a7d106..0000000 Binary files "a/large/047_\344\275\233.png" and /dev/null differ diff --git "a/large/048_\350\215\211.png" "b/large/048_\350\215\211.png" deleted file mode 100644 index 5589c93..0000000 Binary files "a/large/048_\350\215\211.png" and /dev/null differ diff --git "a/large/049_\351\200\274.png" "b/large/049_\351\200\274.png" deleted file mode 100644 index 9c3592b..0000000 Binary files "a/large/049_\351\200\274.png" and /dev/null differ diff --git "a/large/050_\345\206\262.png" "b/large/050_\345\206\262.png" deleted file mode 100644 index 50c43e0..0000000 Binary files "a/large/050_\345\206\262.png" and /dev/null differ diff --git "a/large/051_\346\265\252.png" "b/large/051_\346\265\252.png" deleted file mode 100644 index 2d0b213..0000000 Binary files "a/large/051_\346\265\252.png" and /dev/null differ diff --git "a/large/052_\346\261\227.png" "b/large/052_\346\261\227.png" deleted file mode 100644 index 36ff4a4..0000000 Binary files "a/large/052_\346\261\227.png" and /dev/null differ diff --git "a/large/053_\345\214\205.png" "b/large/053_\345\214\205.png" deleted file mode 100644 index 0626c34..0000000 Binary files "a/large/053_\345\214\205.png" and /dev/null differ diff --git "a/large/054_\345\255\220.png" "b/large/054_\345\255\220.png" deleted file mode 100644 index 09e3470..0000000 Binary files "a/large/054_\345\255\220.png" and /dev/null differ diff --git "a/large/055_\344\271\240.png" "b/large/055_\344\271\240.png" deleted file mode 100644 index ef7746e..0000000 Binary files "a/large/055_\344\271\240.png" and /dev/null differ diff --git "a/large/056_\346\257\233.png" "b/large/056_\346\257\233.png" deleted file mode 100644 index 9626c7a..0000000 Binary files "a/large/056_\346\257\233.png" and /dev/null differ diff --git "a/large/057_\350\205\212.png" "b/large/057_\350\205\212.png" deleted file mode 100644 index a3de39b..0000000 Binary files "a/large/057_\350\205\212.png" and /dev/null differ diff --git "a/large/058_\345\201\267.png" "b/large/058_\345\201\267.png" deleted file mode 100644 index 4786b7a..0000000 Binary files "a/large/058_\345\201\267.png" and /dev/null differ diff --git "a/large/059_\345\202\273.png" "b/large/059_\345\202\273.png" deleted file mode 100644 index fc5535c..0000000 Binary files "a/large/059_\345\202\273.png" and /dev/null differ diff --git "a/large/060_\345\226\204.png" "b/large/060_\345\226\204.png" deleted file mode 100644 index 380adc0..0000000 Binary files "a/large/060_\345\226\204.png" and /dev/null differ diff --git "a/large/061_\347\274\226.png" "b/large/061_\347\274\226.png" deleted file mode 100644 index eee9e29..0000000 Binary files "a/large/061_\347\274\226.png" and /dev/null differ diff --git "a/large/062_\346\201\260.png" "b/large/062_\346\201\260.png" deleted file mode 100644 index 38148d0..0000000 Binary files "a/large/062_\346\201\260.png" and /dev/null differ diff --git "a/large/063_\345\223\210.png" "b/large/063_\345\223\210.png" deleted file mode 100644 index 33f794b..0000000 Binary files "a/large/063_\345\223\210.png" and /dev/null differ diff --git "a/large/064_\346\213\211.png" "b/large/064_\346\213\211.png" deleted file mode 100644 index 486a606..0000000 Binary files "a/large/064_\346\213\211.png" and /dev/null differ diff --git "a/large/065_\346\221\207.png" "b/large/065_\346\221\207.png" deleted file mode 100644 index f718cfa..0000000 Binary files "a/large/065_\346\221\207.png" and /dev/null differ diff --git "a/large/066_\346\231\266.png" "b/large/066_\346\231\266.png" deleted file mode 100644 index 17b8c69..0000000 Binary files "a/large/066_\346\231\266.png" and /dev/null differ diff --git "a/large/067_\345\223\245.png" "b/large/067_\345\223\245.png" deleted file mode 100644 index 20448a2..0000000 Binary files "a/large/067_\345\223\245.png" and /dev/null differ diff --git "a/large/068_\347\262\252.png" "b/large/068_\347\262\252.png" deleted file mode 100644 index 4f18579..0000000 Binary files "a/large/068_\347\262\252.png" and /dev/null differ diff --git "a/large/069_\351\222\223.png" "b/large/069_\351\222\223.png" deleted file mode 100644 index c66b72d..0000000 Binary files "a/large/069_\351\222\223.png" and /dev/null differ diff --git "a/large/070_\347\201\265.png" "b/large/070_\347\201\265.png" deleted file mode 100644 index a2b7f94..0000000 Binary files "a/large/070_\347\201\265.png" and /dev/null differ diff --git "a/large/071_\350\275\246.png" "b/large/071_\350\275\246.png" deleted file mode 100644 index 4aca5a8..0000000 Binary files "a/large/071_\350\275\246.png" and /dev/null differ diff --git "a/large/072_\350\275\257.png" "b/large/072_\350\275\257.png" deleted file mode 100644 index e47392f..0000000 Binary files "a/large/072_\350\275\257.png" and /dev/null differ diff --git "a/large/073_\347\241\254.png" "b/large/073_\347\241\254.png" deleted file mode 100644 index 18c384c..0000000 Binary files "a/large/073_\347\241\254.png" and /dev/null differ diff --git "a/large/074_\346\212\204.png" "b/large/074_\346\212\204.png" deleted file mode 100644 index 4732dbe..0000000 Binary files "a/large/074_\346\212\204.png" and /dev/null differ diff --git "a/large/075_\347\210\254.png" "b/large/075_\347\210\254.png" deleted file mode 100644 index eed8b29..0000000 Binary files "a/large/075_\347\210\254.png" and /dev/null differ diff --git "a/large/076_\345\216\237.png" "b/large/076_\345\216\237.png" deleted file mode 100644 index d499d1c..0000000 Binary files "a/large/076_\345\216\237.png" and /dev/null differ diff --git "a/large/077_\351\251\254.png" "b/large/077_\351\251\254.png" deleted file mode 100644 index 76cee94..0000000 Binary files "a/large/077_\351\251\254.png" and /dev/null differ diff --git "a/large/078_\345\224\211.png" "b/large/078_\345\224\211.png" deleted file mode 100644 index b5521db..0000000 Binary files "a/large/078_\345\224\211.png" and /dev/null differ diff --git "a/large/079_\350\265\204.png" "b/large/079_\350\265\204.png" deleted file mode 100644 index a0bb0da..0000000 Binary files "a/large/079_\350\265\204.png" and /dev/null differ diff --git "a/large/080_\346\234\254.png" "b/large/080_\346\234\254.png" deleted file mode 100644 index 7df2678..0000000 Binary files "a/large/080_\346\234\254.png" and /dev/null differ diff --git "a/large/081_\346\210\221.png" "b/large/081_\346\210\221.png" deleted file mode 100644 index d490249..0000000 Binary files "a/large/081_\346\210\221.png" and /dev/null differ diff --git "a/large/082_\347\210\271.png" "b/large/082_\347\210\271.png" deleted file mode 100644 index 7dc80e2..0000000 Binary files "a/large/082_\347\210\271.png" and /dev/null differ diff --git "a/large/083_\347\210\267.png" "b/large/083_\347\210\267.png" deleted file mode 100644 index 506a84d..0000000 Binary files "a/large/083_\347\210\267.png" and /dev/null differ diff --git "a/large/084_\346\213\263.png" "b/large/084_\346\213\263.png" deleted file mode 100644 index 36fd6dc..0000000 Binary files "a/large/084_\346\213\263.png" and /dev/null differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..68ac1eb --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Pillow==10.0.0 diff --git "a/small/001_\345\205\270.png" "b/small/001_\345\205\270.png" deleted file mode 100644 index 89f38cf..0000000 Binary files "a/small/001_\345\205\270.png" and /dev/null differ diff --git "a/small/002_\345\255\235.png" "b/small/002_\345\255\235.png" deleted file mode 100644 index 516ef0f..0000000 Binary files "a/small/002_\345\255\235.png" and /dev/null differ diff --git "a/small/003_\346\200\245.png" "b/small/003_\346\200\245.png" deleted file mode 100644 index 610206e..0000000 Binary files "a/small/003_\346\200\245.png" and /dev/null differ diff --git "a/small/004_\344\271\220.png" "b/small/004_\344\271\220.png" deleted file mode 100644 index 11e2dae..0000000 Binary files "a/small/004_\344\271\220.png" and /dev/null differ diff --git "a/small/005_\351\272\273.png" "b/small/005_\351\272\273.png" deleted file mode 100644 index f304ade..0000000 Binary files "a/small/005_\351\272\273.png" and /dev/null differ diff --git "a/small/006_\346\211\271.png" "b/small/006_\346\211\271.png" deleted file mode 100644 index e786438..0000000 Binary files "a/small/006_\346\211\271.png" and /dev/null differ diff --git "a/small/007_\350\232\214.png" "b/small/007_\350\232\214.png" deleted file mode 100644 index 6ef8841..0000000 Binary files "a/small/007_\350\232\214.png" and /dev/null differ diff --git "a/small/008_\347\273\267.png" "b/small/008_\347\273\267.png" deleted file mode 100644 index d968728..0000000 Binary files "a/small/008_\347\273\267.png" and /dev/null differ diff --git "a/small/009_\347\233\222.png" "b/small/009_\347\233\222.png" deleted file mode 100644 index 39789d4..0000000 Binary files "a/small/009_\347\233\222.png" and /dev/null differ diff --git "a/small/010_\350\265\242.png" "b/small/010_\350\265\242.png" deleted file mode 100644 index bec05e3..0000000 Binary files "a/small/010_\350\265\242.png" and /dev/null differ diff --git "a/small/011_\350\276\223.png" "b/small/011_\350\276\223.png" deleted file mode 100644 index 86427d7..0000000 Binary files "a/small/011_\350\276\223.png" and /dev/null differ diff --git "a/small/012_\345\257\271.png" "b/small/012_\345\257\271.png" deleted file mode 100644 index e5ae5b4..0000000 Binary files "a/small/012_\345\257\271.png" and /dev/null differ diff --git "a/small/013_\351\200\200.png" "b/small/013_\351\200\200.png" deleted file mode 100644 index 4c72ee4..0000000 Binary files "a/small/013_\351\200\200.png" and /dev/null differ diff --git "a/small/014_\345\257\204.png" "b/small/014_\345\257\204.png" deleted file mode 100644 index 61867cb..0000000 Binary files "a/small/014_\345\257\204.png" and /dev/null differ diff --git "a/small/015_\345\210\233.png" "b/small/015_\345\210\233.png" deleted file mode 100644 index 0b78ce5..0000000 Binary files "a/small/015_\345\210\233.png" and /dev/null differ diff --git "a/small/016_\347\273\235.png" "b/small/016_\347\273\235.png" deleted file mode 100644 index 2dba34e..0000000 Binary files "a/small/016_\347\273\235.png" and /dev/null differ diff --git "a/small/017_\347\247\200.png" "b/small/017_\347\247\200.png" deleted file mode 100644 index 17dbfd7..0000000 Binary files "a/small/017_\347\247\200.png" and /dev/null differ diff --git "a/small/018_\350\260\224.png" "b/small/018_\350\260\224.png" deleted file mode 100644 index 4780842..0000000 Binary files "a/small/018_\350\260\224.png" and /dev/null differ diff --git "a/small/019_\351\274\240.png" "b/small/019_\351\274\240.png" deleted file mode 100644 index c0c1d61..0000000 Binary files "a/small/019_\351\274\240.png" and /dev/null differ diff --git "a/small/020_\345\205\224.png" "b/small/020_\345\205\224.png" deleted file mode 100644 index 393948e..0000000 Binary files "a/small/020_\345\205\224.png" and /dev/null differ diff --git "a/small/021_\347\245\236.png" "b/small/021_\347\245\236.png" deleted file mode 100644 index f5983ba..0000000 Binary files "a/small/021_\347\245\236.png" and /dev/null differ diff --git "a/small/022_\346\256\226.png" "b/small/022_\346\256\226.png" deleted file mode 100644 index 4fb9afb..0000000 Binary files "a/small/022_\346\256\226.png" and /dev/null differ diff --git "a/small/023_\345\217\213.png" "b/small/023_\345\217\213.png" deleted file mode 100644 index cf97e88..0000000 Binary files "a/small/023_\345\217\213.png" and /dev/null differ diff --git "a/small/024_\344\272\272.png" "b/small/024_\344\272\272.png" deleted file mode 100644 index 34a72a7..0000000 Binary files "a/small/024_\344\272\272.png" and /dev/null differ diff --git "a/small/025_\350\272\272.png" "b/small/025_\350\272\272.png" deleted file mode 100644 index 949446b..0000000 Binary files "a/small/025_\350\272\272.png" and /dev/null differ diff --git "a/small/026_\345\215\267.png" "b/small/026_\345\215\267.png" deleted file mode 100644 index 21c6710..0000000 Binary files "a/small/026_\345\215\267.png" and /dev/null differ diff --git "a/small/027_\346\266\246.png" "b/small/027_\346\266\246.png" deleted file mode 100644 index f7c227a..0000000 Binary files "a/small/027_\346\266\246.png" and /dev/null differ diff --git "a/small/028_\347\213\202.png" "b/small/028_\347\213\202.png" deleted file mode 100644 index b7df1dd..0000000 Binary files "a/small/028_\347\213\202.png" and /dev/null differ diff --git "a/small/029_\345\233\276.png" "b/small/029_\345\233\276.png" deleted file mode 100644 index b804a30..0000000 Binary files "a/small/029_\345\233\276.png" and /dev/null differ diff --git "a/small/030_\344\272\206.png" "b/small/030_\344\272\206.png" deleted file mode 100644 index f2d541a..0000000 Binary files "a/small/030_\344\272\206.png" and /dev/null differ diff --git "a/small/031_\347\214\256.png" "b/small/031_\347\214\256.png" deleted file mode 100644 index 1f38bd8..0000000 Binary files "a/small/031_\347\214\256.png" and /dev/null differ diff --git "a/small/032_\345\277\240.png" "b/small/032_\345\277\240.png" deleted file mode 100644 index 0ed1eef..0000000 Binary files "a/small/032_\345\277\240.png" and /dev/null differ diff --git "a/small/033_\346\224\257.png" "b/small/033_\346\224\257.png" deleted file mode 100644 index dd875a5..0000000 Binary files "a/small/033_\346\224\257.png" and /dev/null differ diff --git "a/small/034_\346\264\274.png" "b/small/034_\346\264\274.png" deleted file mode 100644 index 7893062..0000000 Binary files "a/small/034_\346\264\274.png" and /dev/null differ diff --git "a/small/035_\347\210\206.png" "b/small/035_\347\210\206.png" deleted file mode 100644 index 883ddfa..0000000 Binary files "a/small/035_\347\210\206.png" and /dev/null differ diff --git "a/small/036_\346\255\273.png" "b/small/036_\346\255\273.png" deleted file mode 100644 index b58523e..0000000 Binary files "a/small/036_\346\255\273.png" and /dev/null differ diff --git "a/small/037_\346\255\207.png" "b/small/037_\346\255\207.png" deleted file mode 100644 index 8a0d9e5..0000000 Binary files "a/small/037_\346\255\207.png" and /dev/null differ diff --git "a/small/038_\345\217\215.png" "b/small/038_\345\217\215.png" deleted file mode 100644 index df94956..0000000 Binary files "a/small/038_\345\217\215.png" and /dev/null differ diff --git "a/small/039_\345\205\261.png" "b/small/039_\345\205\261.png" deleted file mode 100644 index ed20657..0000000 Binary files "a/small/039_\345\205\261.png" and /dev/null differ diff --git "a/small/040_\344\270\255.png" "b/small/040_\344\270\255.png" deleted file mode 100644 index 78ad5fa..0000000 Binary files "a/small/040_\344\270\255.png" and /dev/null differ diff --git "a/small/041_\347\276\216.png" "b/small/041_\347\276\216.png" deleted file mode 100644 index 8451407..0000000 Binary files "a/small/041_\347\276\216.png" and /dev/null differ diff --git "a/small/042_\346\227\245.png" "b/small/042_\346\227\245.png" deleted file mode 100644 index e6c60fd..0000000 Binary files "a/small/042_\346\227\245.png" and /dev/null differ diff --git "a/small/043_\351\237\251.png" "b/small/043_\351\237\251.png" deleted file mode 100644 index a4c1810..0000000 Binary files "a/small/043_\351\237\251.png" and /dev/null differ diff --git "a/small/044_\345\205\232.png" "b/small/044_\345\205\232.png" deleted file mode 100644 index 68579dd..0000000 Binary files "a/small/044_\345\205\232.png" and /dev/null differ diff --git "a/small/045_\351\233\205.png" "b/small/045_\351\233\205.png" deleted file mode 100644 index 3acd00b..0000000 Binary files "a/small/045_\351\233\205.png" and /dev/null differ diff --git "a/small/046_\344\277\227.png" "b/small/046_\344\277\227.png" deleted file mode 100644 index 5a0df22..0000000 Binary files "a/small/046_\344\277\227.png" and /dev/null differ diff --git "a/small/047_\344\275\233.png" "b/small/047_\344\275\233.png" deleted file mode 100644 index ce16fdd..0000000 Binary files "a/small/047_\344\275\233.png" and /dev/null differ diff --git "a/small/048_\350\215\211.png" "b/small/048_\350\215\211.png" deleted file mode 100644 index 862606c..0000000 Binary files "a/small/048_\350\215\211.png" and /dev/null differ diff --git "a/small/049_\351\200\274.png" "b/small/049_\351\200\274.png" deleted file mode 100644 index c1e5ea4..0000000 Binary files "a/small/049_\351\200\274.png" and /dev/null differ diff --git "a/small/050_\345\206\262.png" "b/small/050_\345\206\262.png" deleted file mode 100644 index 3f53aa8..0000000 Binary files "a/small/050_\345\206\262.png" and /dev/null differ diff --git "a/small/051_\346\265\252.png" "b/small/051_\346\265\252.png" deleted file mode 100644 index 1232a20..0000000 Binary files "a/small/051_\346\265\252.png" and /dev/null differ diff --git "a/small/052_\346\261\227.png" "b/small/052_\346\261\227.png" deleted file mode 100644 index 74e7695..0000000 Binary files "a/small/052_\346\261\227.png" and /dev/null differ diff --git "a/small/053_\345\214\205.png" "b/small/053_\345\214\205.png" deleted file mode 100644 index 0f8684d..0000000 Binary files "a/small/053_\345\214\205.png" and /dev/null differ diff --git "a/small/054_\345\255\220.png" "b/small/054_\345\255\220.png" deleted file mode 100644 index ed53b2c..0000000 Binary files "a/small/054_\345\255\220.png" and /dev/null differ diff --git "a/small/055_\344\271\240.png" "b/small/055_\344\271\240.png" deleted file mode 100644 index a3abe8b..0000000 Binary files "a/small/055_\344\271\240.png" and /dev/null differ diff --git "a/small/056_\346\257\233.png" "b/small/056_\346\257\233.png" deleted file mode 100644 index 2b09e38..0000000 Binary files "a/small/056_\346\257\233.png" and /dev/null differ diff --git "a/small/057_\350\205\212.png" "b/small/057_\350\205\212.png" deleted file mode 100644 index 5082b4a..0000000 Binary files "a/small/057_\350\205\212.png" and /dev/null differ diff --git "a/small/058_\345\201\267.png" "b/small/058_\345\201\267.png" deleted file mode 100644 index c6ab6ab..0000000 Binary files "a/small/058_\345\201\267.png" and /dev/null differ diff --git "a/small/059_\345\202\273.png" "b/small/059_\345\202\273.png" deleted file mode 100644 index 61ccf5b..0000000 Binary files "a/small/059_\345\202\273.png" and /dev/null differ diff --git "a/small/060_\345\226\204.png" "b/small/060_\345\226\204.png" deleted file mode 100644 index 201495a..0000000 Binary files "a/small/060_\345\226\204.png" and /dev/null differ diff --git "a/small/061_\347\274\226.png" "b/small/061_\347\274\226.png" deleted file mode 100644 index f56a67f..0000000 Binary files "a/small/061_\347\274\226.png" and /dev/null differ diff --git "a/small/062_\346\201\260.png" "b/small/062_\346\201\260.png" deleted file mode 100644 index 9953627..0000000 Binary files "a/small/062_\346\201\260.png" and /dev/null differ diff --git "a/small/063_\345\223\210.png" "b/small/063_\345\223\210.png" deleted file mode 100644 index 2bea16c..0000000 Binary files "a/small/063_\345\223\210.png" and /dev/null differ diff --git "a/small/064_\346\213\211.png" "b/small/064_\346\213\211.png" deleted file mode 100644 index e7ef812..0000000 Binary files "a/small/064_\346\213\211.png" and /dev/null differ diff --git "a/small/065_\346\221\207.png" "b/small/065_\346\221\207.png" deleted file mode 100644 index d81e27f..0000000 Binary files "a/small/065_\346\221\207.png" and /dev/null differ diff --git "a/small/066_\346\231\266.png" "b/small/066_\346\231\266.png" deleted file mode 100644 index 3539f55..0000000 Binary files "a/small/066_\346\231\266.png" and /dev/null differ diff --git "a/small/067_\345\223\245.png" "b/small/067_\345\223\245.png" deleted file mode 100644 index ad9d207..0000000 Binary files "a/small/067_\345\223\245.png" and /dev/null differ diff --git "a/small/068_\347\262\252.png" "b/small/068_\347\262\252.png" deleted file mode 100644 index 0d8dd42..0000000 Binary files "a/small/068_\347\262\252.png" and /dev/null differ diff --git "a/small/069_\351\222\223.png" "b/small/069_\351\222\223.png" deleted file mode 100644 index 59fae21..0000000 Binary files "a/small/069_\351\222\223.png" and /dev/null differ diff --git "a/small/070_\347\201\265.png" "b/small/070_\347\201\265.png" deleted file mode 100644 index 5c8f791..0000000 Binary files "a/small/070_\347\201\265.png" and /dev/null differ diff --git "a/small/071_\350\275\246.png" "b/small/071_\350\275\246.png" deleted file mode 100644 index d287c01..0000000 Binary files "a/small/071_\350\275\246.png" and /dev/null differ diff --git "a/small/072_\350\275\257.png" "b/small/072_\350\275\257.png" deleted file mode 100644 index 14bfea7..0000000 Binary files "a/small/072_\350\275\257.png" and /dev/null differ diff --git "a/small/073_\347\241\254.png" "b/small/073_\347\241\254.png" deleted file mode 100644 index 1824344..0000000 Binary files "a/small/073_\347\241\254.png" and /dev/null differ diff --git "a/small/074_\346\212\204.png" "b/small/074_\346\212\204.png" deleted file mode 100644 index 934eaac..0000000 Binary files "a/small/074_\346\212\204.png" and /dev/null differ diff --git "a/small/075_\347\210\254.png" "b/small/075_\347\210\254.png" deleted file mode 100644 index f8a7877..0000000 Binary files "a/small/075_\347\210\254.png" and /dev/null differ diff --git "a/small/076_\345\216\237.png" "b/small/076_\345\216\237.png" deleted file mode 100644 index 0d32739..0000000 Binary files "a/small/076_\345\216\237.png" and /dev/null differ diff --git "a/small/077_\351\251\254.png" "b/small/077_\351\251\254.png" deleted file mode 100644 index c1ee6de..0000000 Binary files "a/small/077_\351\251\254.png" and /dev/null differ diff --git "a/small/078_\345\224\211.png" "b/small/078_\345\224\211.png" deleted file mode 100644 index 7422532..0000000 Binary files "a/small/078_\345\224\211.png" and /dev/null differ diff --git "a/small/079_\350\265\204.png" "b/small/079_\350\265\204.png" deleted file mode 100644 index 0eb3151..0000000 Binary files "a/small/079_\350\265\204.png" and /dev/null differ diff --git "a/small/080_\346\234\254.png" "b/small/080_\346\234\254.png" deleted file mode 100644 index e172050..0000000 Binary files "a/small/080_\346\234\254.png" and /dev/null differ diff --git "a/small/081_\346\210\221.png" "b/small/081_\346\210\221.png" deleted file mode 100644 index 9ab19e3..0000000 Binary files "a/small/081_\346\210\221.png" and /dev/null differ diff --git "a/small/082_\347\210\271.png" "b/small/082_\347\210\271.png" deleted file mode 100644 index 3e00095..0000000 Binary files "a/small/082_\347\210\271.png" and /dev/null differ diff --git "a/small/083_\347\210\267.png" "b/small/083_\347\210\267.png" deleted file mode 100644 index c70a985..0000000 Binary files "a/small/083_\347\210\267.png" and /dev/null differ diff --git "a/small/084_\346\213\263.png" "b/small/084_\346\213\263.png" deleted file mode 100644 index e2b4ced..0000000 Binary files "a/small/084_\346\213\263.png" and /dev/null differ diff --git a/src/LETTERS.py b/src/LETTERS.py new file mode 100644 index 0000000..a744395 --- /dev/null +++ b/src/LETTERS.py @@ -0,0 +1 @@ +LETTERS = '典孝急乐麻批蚌绷盒赢输对退寄创绝秀谔鼠兔神殖友人躺卷润狂图了献忠支洼爆死歇反共中美日韩党雅俗佛草逼冲浪汗包子习毛腊偷傻善编恰哈拉摇晶哥粪钓灵车软硬抄爬原马唉资本我爹爷拳' \ No newline at end of file diff --git a/src/generate.py b/src/generate.py new file mode 100644 index 0000000..7d2d42a --- /dev/null +++ b/src/generate.py @@ -0,0 +1,32 @@ +from PIL import Image, ImageDraw, ImageFont +import os + +from LETTERS import LETTERS + +FONT = ImageFont.truetype('assets/三极隶书简体.ttf', 650) + +OUTPUT_DIR = 'dist' +SMALL_SUBDIR = f'{OUTPUT_DIR}/small' +LARGE_SUBDIR = f'{OUTPUT_DIR}/large' + +os.makedirs(SMALL_SUBDIR, exist_ok=True) +os.makedirs(LARGE_SUBDIR, exist_ok=True) + +def main() -> None: + i = 0 + for letter in LETTERS: + i += 1 + image = Image.new('RGBA', (1000, 1000), (0, 0, 0, 0)) + + draw = ImageDraw.Draw(image) + draw.ellipse((10, 10, 990, 990), outline='black', fill='white', width=30) + draw.ellipse((80, 80, 920, 920), outline='black', fill='white', width=60) + draw.text((500, 410), letter, fill='black', anchor='mm', font=FONT) + + image.resize((100, 100), Image.LANCZOS).save( + f'{SMALL_SUBDIR}/{i:03d}_{letter}.png') # for emoji + image.resize((512, 512), Image.LANCZOS).save( + f'{LARGE_SUBDIR}/{i:03d}_{letter}.png') # for sticker + +if __name__ == '__main__': + main() \ No newline at end of file