Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Shell script to automatically create thumbnails of images in a directory

License

Notifications You must be signed in to change notification settings

Robert9157/auto-image-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

auto-image-thumbnail

Shell script to automatically create thumbnails of all images in a directory.

Dependency: imagemagick

sudo apt install imagemagick

Invoking

To run this, you must define the following parameters:

$1

Output image size, WxH

$2

Output image quality with percent sign

$3

Output directory without first slash

Example:

bash index.sh 192x192 50% output This will resize all images in the current directory to 192x192 with 50% JPEG quality and save them to /output/filename.

Parameters inside the script

LIST

List of image types to convert, prepended by ls (Default ls \*.jpg \*.png \*.jpeg)

About

Shell script to automatically create thumbnails of images in a directory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages