#!/usr/bin/env python3 """ ====================================================================================== restore-unshrunk-images.py - restore a folder tree to its pre-shrink state. This is a utility script for shrinkpix.py, and shares the same date, author, license, etc., as that script. See https://learning-python.com/shrinkpix/. -------------------------------------------------------------------------------------- PURPOSE -------------------------------------------------------------------------------------- Run this script to undo all of shrinkpix's changes in a folder tree. It puts back all of the original unshrunk images that shrinkpix saved to a folder tree's backup subfolders. It also removes the backup subfolders, along with any "__N" extra image copies in them. The net effect fully restores the entire tree to its pre-shrinkpix content and structure. This may be useful if shrinkpix's results are subpar for your website, or if its results are ever improved in future releases. You can also restore from collect-unshrunk-images.py's results; see the note below. -------------------------------------------------------------------------------------- USAGE -------------------------------------------------------------------------------------- Command line: $ python3