Skip to content

ChrisPHP/PixelTextureForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelTextureForge

This project is a Python-based application for texture generation using machine learning techniques. It utilizes libraries such as Pillow, scikit-learn, and img2texture to create and manipulate textures.

Screenshot of the PixelTextureForge program

Requirements

Python 3.11 Docker (optional, for containerized deployment)

Installation

Using pipenv

Clone this repository:

git clone https://github.com/ChrisPHP/PixelTextureForge.git
cd PixelTextureForge

Install pipenv if you haven't already:

pip install pipenv

Install dependencies:

pipenv install

Activate the virtual environment and go into src directory and run the python server:

pipenv shell
cd src

Run in development mode:

python app.py

Run in production with gunicorn:

gunicorn --config gunicorn_config.py app:app

Using Docker (recommended)

Clone this repository:

git clone https://github.com/ChrisPHP/PixelTextureForge.git

Go into the PixelTextureForge directory

cd PixelTextureForge

Build the Docker image with docker compose:

docker compose build

Once built run the docker container:

docker compose up

Usage

Just go to this URL in your browser http://127.0.0.1:5000

Roadmap

  • Pixelize Images
  • Create Wang tiles
  • Add Wang tile Borders
  • Convert images to seamless
  • Add Procedural Texture Generation
  • Edit colour palette
  • Optmisation
    • Multithreading
    • Dockerfile arguments

Dependencies

pillow==10.4.0 scikit-learn==1.5.1 img2texture flask werkzeug opensimplex gunicorn gevent

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Convert and create pixel art textures with real images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published