Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@thomastweets
thomastweets / PNGWhiteTrim.py
Last active Nov 24, 2022
Python script to trim all png images with white background in a folder
View PNGWhiteTrim.py
import Image
import sys
import glob
import ImageOps
# Trim all png images with white background in a folder
# Usage "python PNGWhiteTrim.py ../someFolder"
try:
folderName = sys.argv[1]