nailedit
is a library that generates thumbnail images. It resizes images and changes their format according to passed options and uses the fastest available library to do so. It has both a command line interface and a traditional API.
nailedit
takes input from STDIN and pipes the thumbnail to STDOUT.
$ cat image.jpeg | nailedit > thumbnail.jpeg
$ nailedit -help
-dimensions
: dimensions of the output thumbnail image, in formatWIDTHxHEIGHT
-format
: format of the output thumbnail image (i.e.,jpeg
,png
)