this post was submitted on 06 Jul 2023
3 points (100.0% liked)

Shitty Life Pro Tip

5358 readers
1 users here now

image!shittylifeprotips



Welcome,

To a place for the shittiest, most mocking "pro-tips" you can think of. This Community is welcome to anything shitty pro-tip related, such as memes, discussing the best shitty tip, and much more.


RULES

1_Don't spam, post must be related to community topic

2_Do not seek mental, medical or professional help here. This is not the place, community is meant for satire.

3_No tip should be taken serious

4_No tip should single out a person

5_No racism, harassing, or discriminating against any group or any of the communities members. This will get you banned immediately.

6_Tip posts must start with SLPT

7_For posts related to SLPTs, but not a tip please use "[META]" tag

8_Self promotion will get you banned


Images/Icon

If you are interested in designing a logo or banner please privately message: @killer_penguin@lemmy.world

Icon Found Here By Gregsuj


Moderation

Looking For 2 Mods

If you are interested in becoming part of the moderation team, please privately message: @killer_penguin@lemmy.world

If you are a current mod on r/shittylifeprotips please DM any current mods.

founded 1 year ago
MODERATORS
 

Meta seems to have money to burn, so they'll gladly pay for the disk space to host your uncompressible images. Here's a Python script to generate them!

generate.py

from PIL import Image
from tqdm import tqdm
import numpy as np
import sys
import os

number_of_images = 1000
width = 2048
height = 1024

for filename in tqdm(range(number_of_images)):
	image = Image.fromarray(np.random.randint(0, 256, (height, width, 3), dtype=np.uint8))
	image.save(str(filename) + ".png")

requirements.txt

pillow
tqdm
numpy

you are viewing a single comment's thread
view the rest of the comments
[–] ReCursing@kbin.social 1 points 1 year ago

Also it's not federating yet