Skip to content

jybeaujean/optimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Optimg

require ImageMagick

Compress and optimize your image files. This script can optimize entire directories and use ImageMagick to reduce the size and optimize file.

Installation and requirements

The only thing to install is ImageMagick

Parameters

  • path : path to optimize.
  • max_width : maximal width for you images.
  • quality : [optional] allows to to specify the ouput quality of your images. Example: 90 means a quality of 90%, so a loss of 10%

Examples

Optimize the directory my_image_folder and resize images bigger than 1000px:

optimg.sh /my_image_folder 1000

Optimize the directory my_image_folder and resize images bigger than 1000px and keep a quality of 85%

optimg.sh /my_image_folder 1000 85

TODO

-[X] : Detect ImageMagick and abort it not found -[] : Add output parameter -[] :

About

Compress and optimize your image files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages