Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.44 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.44 KB

Source to original image https://commons.wikimedia.org/wiki/File:Gnu_wallpaper.png

Introduction

This repository contains a simple rectangular jigsaw generator software written in python using the Qt Framework (with PySide2 or PySide6) and numpy.

The image shown above contains a example of output generated from this software. The example shows a image of PNG format with the Jigsaw painted above the image. The formats JPG, GIF and BMP are also supported. It is also possible to generate an output on the SVG format, containing only the paths of the jigsaw.

How to use it

First install the needed dependencies (PySide and numpy) the way you prefer. With pip it can be done with:

pip install pyside2 numpy

You can also use PySide6 if you prefer. If it is your case, on the file jigsaw_generator/jigsaw_generator_info.py change the value of the variable PYSIDE_VERSION to '6'.

Next generate the UI file:

pyside2-uic jigsaw_generator/jigsaw_generator_main_window.ui > jigsaw_generator/ui_jigsaw_generator_main_window.py

At least go to the jigsaw_generator directory and run the program:

cd jigsaw_generator
python main.py