r/Python • • Dec 19 '19

A simple tool written in python to make pixel art from images using excel sheets (https://pix-to-xls.now.sh) repo: https://github.com/joelibaceta/pix-to-xls

1.3k Upvotes

48 comments sorted by

10

u/jaykibi Dec 19 '19

reminds me of the image blur coding challenge, was that the inspiration for this?

8

u/joelibaceta Dec 19 '19

No the inspiration was a joke about funny things made in excel.

5

u/noodlesteak Dec 19 '19

Now let's create a game engine

1

u/joelibaceta Dec 19 '19

Hahaha 🤔

4

u/umbrosa Dec 20 '19

Call it... Excelerator.

2

u/Jac0bas Do you even Django bro? Dec 20 '19

I made something like this way back, it converted images into HTML tables... 1920x1080 pics were almost impossible to load and surprisingly enough the only thing that could open a 2160p image was Safari on and old Mac mini...

192

u/[deleted] Dec 19 '19

The irony of making pixel art of a character that started out as 8 bit is not lost on me.

41

u/mollac Dec 19 '19

11

u/blabbities Dec 19 '19

Caused my LibreOffice 6 to crash to hang on a 1 mb output file. Could this be too intense for that?

4

u/mollac Dec 19 '19

i don't know. maybe

20

u/xnign Dec 19 '19

Sounds like you need to malloc, mollac.

-20

u/mikeblas Dec 19 '19 edited Dec 19 '19

Libre Office is open source, so just fix it yourself.

16

u/Xirious Dec 19 '19

And this fam is exactly why Linux is not the top operating system. Until everyone realises that while a good answer is that "just fix it yourself" it's also the answer most people don't want to hear.

5

u/blabbities Dec 19 '19

Im pretty sure he was joking lol. At least I hope for his sake...because it doesn't address my question at all.

2

u/Xirious Dec 20 '19

Well technically it does - he's assuming you can fix the problem with LibreOffice yourself. It assumes you know how to fix it which for the vast majority of people is not the case and is my gripe with this attitude towards Linux.

1

u/blabbities Dec 20 '19

No I wasnt reporting an issue to be fixed. I was inquiring if the guy who wrote the code new if there was a limitation on either filesizes or OpenOffice opening works from his program. I dont use spreadsheet software often and was only running with it out of curiousity

2

u/blahreport Dec 20 '19

It's not like ITRON is that well-documented or user-friendly despite being number one.

-7

u/mikeblas Dec 19 '19

What is a fam?

14

u/anyfactor Freelancer. AnyFactor.xyz Dec 19 '19

2

u/ToolBoxTad Dec 19 '19

This was the first thing I thought of as well but I didn't think the converter he had worked anymore so I'm glad to see someone else came up with one. It makes understanding geographic information like DEMs much more clear.

60

u/Etheo Dec 19 '19

At the risk of sounding pedantic... Pixelating an image != Pixel art.

But cool project.

19

u/Dagur Dec 19 '19

Reddit is a safe place for pedants

2

u/Starvexx Dec 20 '19

Maybe its an svg?

1

u/lambda5x5 Dec 19 '19

How do you run the python script from the website? I have a small python script I'd like to make a web app for but I don't know where to start.

1

u/joelibaceta Dec 19 '19

Serverless python scripts :)

1

u/lambda5x5 Dec 19 '19

Can you link me to a tutorial or something? I'd love to learn how to do this!

3

u/joelibaceta Dec 19 '19

1

u/lambda5x5 Dec 22 '19

I'm still a bit confused about how the web page is able to call the python code. I see that the html has a "/api" thing, and then the code is run. What does cgi do in the code? Also, is this easier than using a framework such as flask?

1

u/joelibaceta Dec 22 '19 edited Dec 23 '19

Is a serverless script :) when html calls to /api url, Zelig.now load the index.py script and pass the http params after that’s everything are destroyed

1

u/lambda5x5 Dec 22 '19

Oh wow! How do I learn about the html params and the other stuff?

1

u/lambda5x5 Dec 20 '19

Thank's a ton. How exactly does the python stuff link to all the web dev stuff? Where would I learn how to build an entire website from scratch with zeit.co, where a button click would run a script?

1

u/cyber0pb0b Dec 20 '19

Not sure if this is what you’re looking for, but I hope this helps:

https://www.theodinproject.com/

1

u/lambda5x5 Dec 20 '19

I'm not trying to learn web dev though, I just want the bare minimum to allow me to make a website to run my python code on a button press.

1

u/Tank_AT Dec 20 '19

Would it be possible within reason to include an option to generate the result from a predefined palate with approximate matching of the colors to that palate? That would turn it into a generator for perler patterns.

1

u/joelibaceta Dec 20 '19

🤔 sounds good

8

u/MysteryMage Dec 19 '19

That's really cool !

but a little tip, pixel art doesn't use alpha in the pixels

4

u/nemesit Dec 19 '19

Pixel art uses pixels, any kind, could even use lab color

2

u/[deleted] Dec 19 '19

Wow, nice !

2

u/winnie-poo Dec 19 '19

Amazing and entertaining

2

u/cowinkiedink Dec 20 '19

Awesome tool. Well done.

3

u/stable_maple Dec 19 '19

I love that programmers don't need any good reason to create amazing things. At a very low level, I think this is what humanity is all about.

3

u/[deleted] Dec 19 '19

Simple lol

great job tho

-1

u/Chondriac Dec 19 '19

TIL reducing the resolution of an image is art