In my new exploration of python column on ello.com, I'm gonna tell y'all about things I find that are super swag. Today's topic is IMAGE PROCESSING
IMAGE PROCESSING in python is swag as shit. This is because of 1) bindings to other languages' libraries, and 2) python is the best language ever.
I would like y'all to check out imagemagick. It's like photoshop but less plebeian, because you can do things programmatically instead of with a mouse like you're on Windows 98.
Note that there's also a fun library called ghostscript that enhances the power of imagemagick. I'm currently using it to convert from PDFs to PNGs.
Now let's talk about the bad thing about these libraries/programs/what ever...they're written in C. C was a language created in the 1800s specifically so idiot trolls on the internet could brag about how what they're doing is harder and more low-level that anyone else.
Enter bindings. Bindings are things swaggy FOSS people write to allow you to do things in one language from writing code in another language. Wand is the super swaggy imagemagick+ghostcript bindings to python. Thanks to the bae who wrote wand.
I (add a friend/teammate) have used these things for asking a user to upload a PDF of a floor plan in a Django web app and then tiling it for use with Leaflet.js. It's all done behind the scenes, and it was really fun to code.
This concludes my new column.