Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

A simple bash script that uses ImageMagick to generate low-quality image placeholders (LQIPs) and WebP variants of all images in a given directory.

License

Notifications You must be signed in to change notification settings

AleksandrHovhannisyan/webqip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webqip

A simple bash script that uses ImageMagick to generate low-quality image placeholders (LQIPs) and WebP variants of all images in a given directory.

Installation

  1. Install ImageMagick (sudo apt-get install imagemagick).
  2. Install the WebP libraries: sudo apt-get install webp (or download the binaries).
  3. Clone this repo.
  4. Make the script executable: chmod u+x webqip.sh.
  5. Copy the file to /usr/local/bin: sudo cp webqip.sh /usr/local/bin/webqip (you can rename the script if you want). Alternatively, you may wish to create a symlink to it in case you ever update the script in the future: sudo ln -s ~/path/to/webqip/webqip.sh /usr/bin/webqip.

Usage

Flag Description Required
s Source directory in which to search for images. Yes
w The width to use for each LQIP No
q The quality at which to output WebP images No
h Displays the help menu. No

About

A simple bash script that uses ImageMagick to generate low-quality image placeholders (LQIPs) and WebP variants of all images in a given directory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages