23
submitted 1 year ago* (last edited 1 year ago) by Cevilia to c/shittylifeprotips@lemmy.world

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

top 4 comments
sorted by: hot top controversial new old
[-] oktoberpaard@feddit.nl 2 points 1 year ago

Doesn’t that also burden any fediverse instance that’s federated with it? Or is Threads not federated (yet)?

[-] Cevilia 8 points 1 year ago* (last edited 1 year ago)

Nope, images don't federate, just links to them :)

What's uploaded: 1000 10MB pictures What's federated: 1000 hyperlinks

[-] ReCursing@kbin.social 2 points 1 year ago

Also it's not federating yet

[-] ReCursing@kbin.social 2 points 1 year ago

Be sure to do this with a burner phone or via a virtual machine or emulator so you don;t give them everything they actually want as well.

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

Shitty Life Pro Tip

5407 readers
4 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 2 years ago
MODERATORS