https://github.com/fogleman/thumbs
Go binary that watches a folder for images and generates thumbnails of them.
https://github.com/fogleman/thumbs
Last synced: 8 months ago
JSON representation
Go binary that watches a folder for images and generates thumbnails of them.
- Host: GitHub
- URL: https://github.com/fogleman/thumbs
- Owner: fogleman
- License: mit
- Created: 2016-07-15T21:03:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-16T02:15:39.000Z (over 9 years ago)
- Last Synced: 2025-05-13T08:43:29.036Z (11 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Thumbs
Go binary that watches a folder for images and generates thumbnails of them.
### Install
$ go get github.com/fogleman/thumbs
### Run
The app will run forever, watching the `src` folder for images.
$ thumbs
You should probably use something like [supervisor](http://supervisord.org/) to
launch and monitor the `thumbs` process.
Want to generate thumbnails for images that already exist? Just do this while
`thumbs` is running:
$ touch *.jpg *.png
### Arguments
$ thumbs -src IMAGE_FOLDER -dst THUMB_FOLDER -w MAX_WIDTH -h MAX_HEIGHT -q JPG_QUALITY
All arguments are optional. See the defaults below.
| Flag | Default | Description |
| --- | --- | --- |
| -src | `.` | directory to watch for images |
| -dst | `thumbs` | directory to place thumbnails |
| -w | 1024 | max thumbnail width |
| -h | 1024 | max thumbnail height |
| -q | 95 | thumbnail jpeg quality |