Skip to content

Instantly share code, notes, and snippets.

@opub
opub / animate.py
Created August 11, 2022 19:44
Generates an animated GIF for set of images in a directory
from PIL import Image
import glob
import math
#
# This script will take all of the images that match a pattern in the local
# directory and generate an animated GIF with each image as a frame. Useful
# for capturing all of your NFTs into a single file for sharing.
#
# One time setup assuming you already have python and pip installed.
@opub
opub / download.sh
Last active July 29, 2022 19:19
Download all NFT images in a Solana wallet
#!/bin/bash
#
# This script downloads all of the NFT images in a Solana wallet to your local machine.
# It should work on Windows, macOS and Linux. Windows would require WSL, Git Bash or similar.
# Pass the Solana wallet address and optionally an offset if there are more than 500.
#
# For example to get the first 500 NFT images:
# ./download.sh FoRen4D8jyU1RX9jY7pneaNg3E6CopUEV8cvP1o5vnRm
# Then to get 501-1000: