Testing image to character script? - ???

We Are The Witches

True & Honest Fan
kiwifarms.net
Joined
Feb 23, 2019
███████████████████████
██████████████████████████
██████████████████████
█████████████████████
██████████████████
█████████████████
██████████████
██████████████
████████
████
███████
████
████
███










██
██
████
██████████
██████
████
█████
██████████
██████
████████
██████████
█████████
██████████████
████████████
████
██████████
█████
████████
██████████████
████████████████
████████████
██████████████
██████████████
████
██████████████
██████████████
██████████
██████████████
████████████
 
I don't understand the question.
In basic Python, how do you go about taking an image, then resizing it down, then get all pixels in character format for them to be posted in Kiwifarms?

That's the idea I had, and made something (incomplete) as you can see above, the color recalculation is not great but I might know how to fix it.

But how would you do this? You can only use a basic library to tell the RGB color of each pixel of the image, but the compression/resizing must be done by your ideas/your function.
 
  • Informative
Reactions: Grub
In basic Python, how do you go about taking an image, then resizing it down, then get all pixels in character format for them to be posted in Kiwifarms?

That's the idea I had, and made something (incomplete) as you can see above, the color recalculation is not great but I might know how to fix it.

But how would you do this? You can only use a basic library to tell the RGB color of each pixel of the image, but the compression/resizing must be done by your ideas/your function.
Answer: you just post an image, not whatever this is
 
  • Mad at the Internet
Reactions: NuII's Clitty💦
Interesting experiment. I assume you're generating the characters as custom RGB blocks on your end and just copy/pasting into the post? I wouldn't have thought Xenforo had the ability to take that as input and not just throw out a bunch of render errors.
 
This is kind of cool. Is there a maximum resolution the script can take?
It's a shit script I made between yesterday and today, I am not sure.

It simply uses the Pillow/PIL library to get the RGB/A values of the image. After that, given a resolution, it resizes the image by mixing those pixels into 1. So because it's resizing, a block of pixels would mix into one, which can be done in several ways (I am discovering how, but have not studied the "appropriate" way).

So for example, for (255, 0 ,0) [red], (0, 255, 0) [green], (0, 0, 255) [blue], you would add all, then divide by the total (3), so it gives (85, 85, 85), that's how I'm doing it, however it seems that the algorithm for doing this properly is more complex.
Also if that block that needs to be compressed is splitting one pixel into a fraction, then the calculation would have to take that into account (so you give them like a weight/percentage). Well, that's my idea, I have no clue if it's done like this.

Then it just outputs that pixel/color for the character (formatted for Kiwifarms with the BBCode). Again, it's a shit script and there's some bugs, but it's the idea for creating something that's what's fun, not really the result (just a bit).
Interesting experiment. I assume you're generating the characters as custom RGB blocks on your end and just copy/pasting into the post? I wouldn't have thought Xenforo had the ability to take that as input and not just throw out a bunch of render errors.
Just on my end, it generates a txt file with the BBCode in it, so like [COLOR=#1f2819]█[/COLOR], or if I want, in HTML with <span> tags.

Keep in mind, I'm a newbie in programming, this is not a good script yet.
 
  • Informative
Reactions: NoxTuk
In basic Python, how do you go about taking an image, then resizing it down, then get all pixels in character format for them to be posted in Kiwifarms?

That's the idea I had, and made something (incomplete) as you can see above, the color recalculation is not great but I might know how to fix it.

But how would you do this? You can only use a basic library to tell the RGB color of each pixel of the image, but the compression/resizing must be done by your ideas/your function.
You're talking like this hasn't been a thing in IRC for 30+ years.
 
  • Late
Reactions: ⚞⛇⚟
█████ █████ █████ ██████ ████ █ █████ ███ ███ ███ ████????
 
You're talking like this hasn't been a thing in IRC for 30+ years.
The first step is about combining color values for the resize, which is fun to figure out. It's one of the purposes of thinking of ways to do things in programming (or whatever other field), we already know this exists, we can ask AI, we can take it from the Internet, I can even probably do it with the Pillow library, but that's not the point.
based scripter but there is no question in this post. no, child, adding question marks does not make your sentence fragment grammatically a question. reported. enjoy your ban.
Despite the name, the Q&A is not just for questions, it's mostly to contain spam or other miscellaneous topics and also standard Q&A threads, which is the reason why Null/staff moved some threads to this board despite them not being questions.

I get that you're joking in lolcow lingo about this, I'm just answering to your legit point about Q&A.
 
  • Dumb
Reactions: DankSmoker
████████████████████
████████████████████
██████████████████████
██████████████████████████████
██████████████████████████████████
█████████████████████████████
███████████████████
█████████████████
██████████████████████
██████████████
████████████
█████████████
████████████████
███████████████
██████████████████████████
██████████████████████████
████████████████████████████
█████████████████████████████
████████████████████████████
█████████████████████████
████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
██████████████████████████
███████████████████
█████████████████
█████████████
█████████████████████
█████████████████████
██████████
████████
████████
██████████
███████████
█████████
████████████
████████████
███████
████
███████████
██████████
████████
█████████████
██████████████████
██████████
█████████
█████
██████████
███████████
██████████
██████████████
██████████████████
█████████████
██████████████
██████████████
███████████████
██████████████
█████████████████████████
██████████████████████████
█████████████████████
███████████████████████
███████████████████████
 
Back