Skip to content

valentine/go-mosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages