Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

Go-Mosaic

Go-Mosaic is a mosaic creator written in Go.

This was written as an entry for Go Challenge 3.

Installation

go get github.com/valentine/go-mosaic/

Usage

go-mosaic -input="input.jpg" -output="output.jpg" source="photodirectory" -tile=16    

input: Path of input image (used to create mosaic)

output: Path of output image (defaults to output.jpg)

source: Directory for source images (defaults to photos/)

tile: Size of tiles in output image (higher numbers process faster, but images will have less resolution) (defaults to 16)

Example

Input

input image Original file — 5,616 x 3,744 (23.2MB)

Output

Default tile setting (tile=16)

output image This took 88 minutes to generate on a 2013 MacBook Pro — 100% crop of output image

Custom tile setting (tile=32)

output image This took 29 minutes to generate on a 2013 MacBook Pro — 100% crop of output image

Licence

Code licensed under The MIT License (MIT).

Images used in the examples are property of their respective copyright owners, and are for educational purposes only.

About

A mosaic creator written in Go.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.