calda / Puzzle-Generator

macOS Command Line tool for generating puzzle pieces from an image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puzzle Generator

Puzzle Generator is a macOS Command Line Utility written in Swift. It detects images (.png or .jpg) in the current folder and crops them into puzzle pieces.

Example Input

Output (2x2)

Using Puzzle Generator

Download the latest executable from Puzzle-Generator/Releases. Run it with ./Puzzle\ Generator.

JPNG

Puzzle Generator supports the JPNG library. Puzzle Generator will export files in the JPNG format if it detects JPNGTool in the current folder.

Example Configuration

cal: ~ $ cd Documents/Puzzles
cal: ~/Documents/Puzzles $ ./Puzzle\ Generator 
Detected JPNGTool.
Found 89 images in the current directory.

Number of rows? 4
Number of columns? 3

Generating puzzle-A-ahh
2016-12-19 00:59:47.016 JPNGTool[20892:563605] Converted 'GeneratedPuzzles/puzzle-A-ahh/puzzle-A-ahh-row0-col0.png' to JPNG
...

About

macOS Command Line tool for generating puzzle pieces from an image


Languages

Language:Swift 100.0%