The img2desmos
library allows you to convert images into Desmos-style pixel art using Python.
git clone https://github.com/kaitlek/img2desmos.git # or download the zip with the "Code" button above
cd discord-voicemessage-sender
pip install -r requirements.txt
Install the required dependencies using the following command:
pip install -r requirements.txt`
- Import the
img2desmos
class from theimg2desmos
module: - Create an instance of the
img2desmos
class: - Use the
DrawImage
method to convert an image into Desmos-style pixel art. Provide the path to the image and specify the desired size (largest side in pixels):from img2desmos import img2desmos i2d = img2desmos() i2d.DrawImage(r"D:\image\path.png", 16) #change 16 to however many pixels you want the largest side to be, #greater than 32 is very laggy
This library is provided as-is and may require further configuration or adjustments based on your specific use case. Use it responsibly and in compliance with relevant terms and conditions.
Remember to update the paths, sizes, and other details according to your actual project requirements.