https://github.com/valeriyvan/geometrizebot
Telegram bot for geometrizing images written in Swift
https://github.com/valeriyvan/geometrizebot
auto-tracing geometrize svg svg-images swift telegram telegram-bot vapor vapor-swift vector-graphics vectorization vectorize vectorizer
Last synced: over 1 year ago
JSON representation
Telegram bot for geometrizing images written in Swift
- Host: GitHub
- URL: https://github.com/valeriyvan/geometrizebot
- Owner: valeriyvan
- License: mit
- Created: 2023-05-26T07:22:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T17:48:16.000Z (about 2 years ago)
- Last Synced: 2024-05-01T23:38:32.923Z (about 2 years ago)
- Topics: auto-tracing, geometrize, svg, svg-images, swift, telegram, telegram-bot, vapor, vapor-swift, vector-graphics, vectorization, vectorize, vectorizer
- Language: Swift
- Homepage: https://t.me/geometrizebot
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

Geometrizebot is written in Swift Telegram bot for geometrizing images. Bot is available at https://t.me/geometrizebot. Experimental very limited version is [available also over web](https://geometrize.w7software.com). Bot uses Swift Package [swift-geometrize](https://github.com/valeriyvan/swift-geometrize) for geometrizing images.
Here's how bot is looking at the moment:

Here's image from the screenshot above and one geometrized with 250 rotated ellipses:
Historical moment: bot makes its own logo. A bit of postmodernism.
Here is logo bot made:
## How do I run bot?
I run it in [Digital Ocean](https://m.do.co/c/e843d5778ae5) Ubuntu droplet.
In fresh instance install dependencies:
```bash
sudo apt-get update
sudo apt-get install clang libicu-dev libatomic1 build-essential pkg-config
sudo apt-get install libssl-dev
# install Swift
wget https://download.swift.org/swift-5.8-release/ubuntu2204/swift-5.8-RELEASE/swift-5.8-RELEASE-ubuntu22.04.tar.gz
tar xzf - < swift-5.8-RELEASE-ubuntu22.04.tar.gz*
sudo mkdir /swift
sudo mv swift-5.8-RELEASE-ubuntu22.04.tar.gz /swift/5.8.0
sudo ln -s /swift/5.8.0/usr/bin/swift /usr/bin/swift
swift --version # checks Swift version installed
```
Provide telegram API token with `export geometrizebot_telegram_api_key="TOKEN"`.
Then run bot with `swift run`.
That's it.
