Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/medidbella/xpm_image_cropper
- Owner: medidbella
- Created: 2024-12-01T20:51:27.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T19:47:06.000Z (2 months ago)
- Last Synced: 2024-12-16T15:52:21.816Z (about 2 months ago)
- Topics: automation, image-cropping, python3, xpm
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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