HOG-ZONE

just the cum farts

call me mr yeast the way im infected


sleeps-darkly
@sleeps-darkly

So @Codarobo gave me an idea.

Here we go. Every load from an unique IP makes the image degrade. Every time a new unique IP loads it, the JPEG quality gets decremented by 1. When it reaches 10, the image gets copied onto a new canvas with 100 JPEG quality and it starts decrementing again.

If the server crashes and manages to restart itself, it will lose the list of unique IPs that already have loaded the file, and might corrupt the file irrecoverably. I might not restart the server if it happens. If I will, the file quality might get restored.

Only direct loads of the file count, Discord thumbnails will not work.

Let's see how many people are needed to OBLITERATE this TWINK.

UPD: https://cohost.org/sleeps-darkly/post/4411599-w-e - source code. Will keep the dyno up until it crashes or something.

UPD2: https://cohost.org/sleeps-darkly/post/4418814-compress-it - timelapse

UPD3: SERVER CRASHED lmao and re-used an intermediate compressed file. Fully resetting it, time to work it anew.

UPD4: I've put them side by side for now. The left is the final one I've seen on the run. The right is after the restart after crash.


dataerase
@dataerase
This page's posts are visible only to users who are logged in.

You must log in to comment.

in reply to @sleeps-darkly's post:

I'm actually adding a littttttle gaussian blur with a radius of 0.1 every time I cycle the file from 10 back to 100. This seems to help, because I did notice it not being affected much after going <5. And even then, the limit of 10 was chosen because after 5 it turns into gray squares that stop really being affected much by any further compression. I'll just post the source code later, because I also noticed the issue in my code logic. But it doesn't really matter.

But. Might actually add a slight resize on the cycle too. Idk.

went to sleep and it was still a crusty game boy, woke up 20 minutes ago and it was just colors so i figured it couldn't get any worse, now half the image is just black with a little red