Skip to content

BPerlakiH/optimalThumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optimalThumbnail

Optimal thumbnail creator written in golang based on: https://github.com/GHamrouni/OptimalCrop

Processes multiple files on multiple channels (configurable), and won't run in to the "too many files open" error.

Installation

$ go get github.com/BPerlakiH/optimalThumbnail

Included libraries: "github.com/nfnt/resize"

Usage

Simple:

optimalThumbnail -in your_input_folder_path -out your_output_folder_path

Advanced:

optimalThumbnail -in your_input_folder_path -out your_output_folder_path -width 154 -height 154 -format jpg -q 85 -c 50

Optional config values:

width - [default 178]

height - [default 178]

format - output format of the image, it can be jpg, png or webp [default jpg]

q - quality of the image encoding 0-100 [default 75]

c - concurency, the amount of go rutines launched at once [default 10]

About

optimal thumbnail creator written in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages