https://github.com/edap/poster
command line tool to resize and merge images
https://github.com/edap/poster
Last synced: over 1 year ago
JSON representation
command line tool to resize and merge images
- Host: GitHub
- URL: https://github.com/edap/poster
- Owner: edap
- Created: 2014-07-27T21:55:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-12T23:32:33.000Z (over 10 years ago)
- Last Synced: 2024-10-11T00:25:23.381Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.24 MB
- Stars: 13
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://godoc.org/github.com/edap/poster)
[](https://drone.io/github.com/edap/poster/latest)
# poster
poster is a command line tool that allows you to merge more images in one.
Given a source folder containing the images, the program resizes all the images at the same dimension (default is 120x90) and calculates the disposition of the images in a rectangle. If the number of the images is a prime number, and one of the image can not fit into a rectangle, the tool will skip one images, until the total number of the images will fit into a rectangle.
## Usage
Simply run `poster` in the folder containing your images. If you run `poster -h` the default options will be displayed
```go
Usage of poster:
-dest_dir=".": the destination directory that will contain the grid
-log_file="stdout": specify a log file, as default it will print on stdout
-source_dir=".": the origin directory that contains the images to compose the grid
-thumb_height=90: the height of a single thumb
-thumb_width=120: the width of a single thumb
```
To specify a different source directory as the current direcotry, a different destination directory as the current one, and a logfile, do as follow.
`poster -dest_dir=/home/username/dest -source_dir=/home/username/source -log_file=/home/username/my.log`
##Installation
Assuming that you have the go toolchain installed, download the package with `go get github.com/edap/poster` and install it moving in the downloaded folder and running `go install`.
## TODO
* ~~provide log option~~ _done_
* Support multiple image formats, .gif, .png, and not only jpeg
* Use goroutine during the canvas creation
* Provide batch resize command, without merge
* Aspect ratio option, 4/3 and 16/9