Skip to content

Instantly share code, notes, and snippets.

@omers4
omers4 / gifAniChange.py
Last active December 2, 2024 00:21 — forked from Kurobyte/gifAniChange.py
Python script that allows to change Gif animation loop count
import sys
import re
import binascii
pattern = b"\x4E\x45\x54\x53\x43\x41\x50\x45\x32\x2E\x30"
regex = re.compile(pattern)
rep = sys.argv[2]
with open(sys.argv[1], 'r+b') as f:
content = f.read()