Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/medidbella/xpm_image_cropper

automatically cropping .xpm images
https://github.com/medidbella/xpm_image_cropper

automation image-cropping python3 xpm

Last synced: about 3 hours ago
JSON representation

automatically cropping .xpm images

Awesome Lists containing this project

README

        

this project aims to crop xpm images
here is an example:

BEFORE :

![Screenshot from 2024-12-03 18-36-50](https://github.com/user-attachments/assets/0def61db-9dad-43fb-a890-c3ae9c114b5e)

AFTER :

![Screenshot from 2024-12-03 18-38-11](https://github.com/user-attachments/assets/67e51b68-b7c8-4528-ba3d-ebb533913f74)

In our graphics project, we use XPM images with the MiniLibX graphical library. Since MiniLibX doesn't handle invisible pixels,
every pixel must be checked before being drawn.
By cropping the image, we can significantly reduce the time required for this process, making it more efficient.

USAGE:

after cloning use this command:

$=> python3 main.py

then a new directory named results will have your cropped image with the same name as the original one