Skip to content

Baldauf/imgmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagemin

  • crop, minify, and downsample images from the command line

Dependencies

Setup

  1. Clone this repo.
  2. Move to the repo in a terminal/iterm pane.
  3. Install packages by running the following in terminal/iterm from the repo:
brew install imagemagick
brew install graphicsmagick
npm install

Usage

  1. Add images you want to refine to the /img folder.
  2. Open gulpfile.js in your texteditor of choice.

You'll see two tasks in gulpfile:

  1. Running gulp resize will resize all .jpgs in the img folder using the attributues specified.
  2. Running gulp tinyimg will minify all images that have been resized using the https://tinyjpg.com/ api service.

Note: to use tinyimg, you will have to set up your own api key and replace api-key-here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published