Python script to generate IOS icons
Python script to generate IOS icons
Starting with IOS development, I was looking for a way to generate icons in various sizes as required by apple. I couldn't find anything quickly, so I hacked together a Python script. Here it is: [code] from PIL import Image import glob, os sizes = [57, 114, 72, 144, 512, 1024] for infile in glob.glob("*.jpg"): print("File: " + infile) if "_" in infile: continue file, ext = os.path.splitext(infile) for size in sizes: print("=> New size: %dx%d"%(size, size)) im = Image.open(infile) im.thumbnail((size, size), Image.ANTIALIAS) im.save(file + "_" + str(size) + ".png", "PNG") [/code]
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Python/boto3 script to rotate|reboot EC2 instances in an ECS cluster
RUBYSTONE: Ruby porting of the Python PYSTONE script
A simple Python script for extracting CSVs from FortiGate firewalls
Pond - A Python script to manage your DO Droplets
My Python script to do DCA using cryptocurrencies
Pycdef – Generate C Constant Definitions from Python Arrays
Python script converter
Cordova – JS script to generate icons/splash screen from any image
Script Excel with Python
Made a lil' TODO script in Python