Developed with the software and tools below.
Create tile layouts from 1 or 4 variants using multiple layouts and various colour choices for grout colours.
- Only requires 1 image if only 1 variant is available, but supports 4 images if you have multiple variants.
- Provide the name of the tile for a more understandable file name.
- Select from multiple different layout options.
- Add a grout line and your choice of grout colours from brands BAL and UltraTile.
└── tile-image-gen/
├── LICENSE
├── app.py
├── wsgi.py
├── tile-image-gen.service
├── Dockerfile
├── install.sh
├── static
│ ├── favicon.ico
│ ├── robots.txt
│ ├── info.svg
│ ├── logo.png
│ └── sitemap.xml
└── templates
└── index.html
.
File | Summary |
---|---|
app.py | Backend for creating and merging uploaded files and adding grout lines |
templates
File | Summary |
---|---|
index.html | Front end site for end users |
Requirements
Ensure you have the following dependencies installed on your system:
- Python:
version 3.11
- Clone the tile-image-gen repository:
git clone https://github.com/AidanWarner97/tile-image-gen
- Change to the project directory:
cd tile-image-gen
- Install the dependencies:
> sudo bash install.sh
Use the following command to run tile-image-gen:
> python app.py
For simpler install, run the install.sh
> sudo bash install.sh
> sudo systemctl enable --now tile-image-gen.service
Make sure to install the dependencies first
pip install -r requirements.txt
Then edit the service file
> nano tile-image-gen.service
Change the Working directory and ExecStart line to the location you want the script to run from.
WorkingDirectory=/opt/tile-image-gen
ExecStart=/opt/tile-image-gen/venv/bin/python /opt/tile-image-gen/wsgi.py
Then you can run the following commands:
> cp tile-image-gen.service /etc/systemd/system/
> systemctl daemon-reload
> systemctl enable --now tile-image-gen.service
Docker support is here, with the repo being hosted here
docker run \
-p 5000:5000 \
-p restart=on-failure \
mraidanlw97/tile-image-gen:python3
services:
tile-image-gen:
image: mraidanlw97/tile-image-gen:python3
ports:
- "5000:5000"
-
Add option for no grout-lines
-
Upgrade codebase to Python3
-
Enable docker support
- []
Upgrade ratios for more than just herringbone
- []
Update web template
Contributions are welcome! Here are several ways you can contribute:
- Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your GitHub account.
- Clone Locally: Clone the forked repository to your local machine using a Git client.
git clone https://github.com/AidanWarner97/tile-image-gen
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to GitHub: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
Once your PR is reviewed and approved, it will be merged into the main branch.
This project is protected under the AGPL License. For more details, refer to the LICENSE file.