Py

Python script to generate IOS icons

Hacker News

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 card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: ios · Missing: supports, reddit linkedin, podcasting
57%57% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRLess likely to generate early MRR · Strong signals: ios, way · Missing: mobile apps, personal, entrepreneurs
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: apple, new, code · Missing: mac, agents, macos
40%40% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
27%27% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
22%22% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
6%6% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Py
Python/boto3 script to rotate|reboot EC2 instances in an ECS cluster48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python/boto3 script to rotate|reboot EC2 instances in an ECS cluster

Hacker News1
RU
RUBYSTONE: Ruby porting of the Python PYSTONE script38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RUBYSTONE: Ruby porting of the Python PYSTONE script

Hacker News1
A
A simple Python script for extracting CSVs from FortiGate firewalls34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A simple Python script for extracting CSVs from FortiGate firewalls

Hacker News2
Po
Pond - A Python script to manage your DO Droplets26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pond - A Python script to manage your DO Droplets

Hacker News2
My
My Python script to do DCA using cryptocurrencies37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My Python script to do DCA using cryptocurrencies

Hacker News2
Py
Pycdef – Generate C Constant Definitions from Python Arrays56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pycdef – Generate C Constant Definitions from Python Arrays

Hacker News3
Py
Python script converter19%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python script converter

Hacker News1
Co
Cordova – JS script to generate icons/splash screen from any image37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cordova – JS script to generate icons/splash screen from any image

Hacker News2
Sc
Script Excel with Python41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Script Excel with Python

Hacker News280
Ma
Made a lil' TODO script in Python31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Made a lil' TODO script in Python

Hacker News1