Skip to content

Instantly share code, notes, and snippets.

View thomastweets's full-sized avatar

Thomas Emmerling thomastweets

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@thomastweets
thomastweets / PNGWhiteTrim.py
Last active February 8, 2024 18:53
Python script to trim all png images with white background in a folder
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]