scripts for batch optimizing image files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
enumFiles.py
transcode.py
win32_unicode_argv.py

README.md

image_optimize_helpers

Notes for myself

Most of the time, I'll want:

python2 enumFiles.py | concurrent -
  • enumFiles.py:

    Enumerate files in a directory (and subdirectories).

    • recurisve = True: list files in subdirectories.

    • ext = None: list all files.

      ext = "png": list only PNG files.

  • transcode.py

    All the hard work of manipulating files safely & handling unicode filenames are done here.

    • Choose 1 helper function from the below list:

      Helper Notes
      runDeflopt() Optimize PNG files via Deflopt
      runOptipng() Optimize PNG files via OptiPNG.
      runPngout() Optimize PNG files via PNGOUT.
      optimizePNG() A sequence of actions (that I often use) to compress PNG files.
      runJpegoptim() Optimize JPG files via jpegoptim.
      runCwebp() Run WebP.
  • concurrent

    A tool to utilize multicore CPU.