Skip to content

Instantly share code, notes, and snippets.

View DiverOfDark's full-sized avatar
😼
Be a geek

Kirill Orlov DiverOfDark

😼
Be a geek
View GitHub Profile
@DiverOfDark
DiverOfDark / main.py
Created October 30, 2023 10:02
naive python gif crop
from os import listdir
from os.path import splitext, isfile, join
import gif
def optimizeImage(source_file):
target_file = source_file.replace("data", "data2")
file = open(source_file, 'rb')