Skip to content

comet-code-andrew/image-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

image-optimizer

A simple image optimizer.

  • It modifies images to be under 1600px x 1600px (recommended wordpress image size)
  • Reformats images to webp (considering changing this to jog due to late adoption of many tools like Adobe products headsmack, Odoo, and probably others.
  • Will not expand images if they are under 1600 x 1600
  • Maintains aspect ratio, in other words the script does not simply resize but shrinks and maintains spect ratio to be under 1600px width or height

How to use

  1. brew install pillow
  2. pip install -r requirements.txt
  3. cd /inside/directory/of/images/to/optimize
  4. python3 /path/to/bulk_convert_jpeg.py /directory/to/output/images/

About

Bulk image processing script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages