https://github.com/yaph/pega
A command line tool for pasting images on top of other images.
https://github.com/yaph/pega
cli-app image-processing pypi-package python-package python-pillow
Last synced: 3 months ago
JSON representation
A command line tool for pasting images on top of other images.
- Host: GitHub
- URL: https://github.com/yaph/pega
- Owner: yaph
- License: mit
- Created: 2022-09-20T13:12:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T20:41:32.000Z (about 3 years ago)
- Last Synced: 2025-10-14T11:39:05.482Z (3 months ago)
- Topics: cli-app, image-processing, pypi-package, python-package, python-pillow
- Language: Python
- Homepage: https://pypi.org/project/pega/
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# pega
A command line tool for pasting images on top of other images.
## Sample Commands
Paste 1 image on base image:
pega tests/images/base-1000x1000-m100-0-200-0.png tests/images/green-tree-python-226553_1920.jpg
For all JPEG files in directory create a new image with the JPEG pasted on the base image:
pega tests/images/base-1000x1000-m100-0-200-0.png tests/images/*.jpg
Specify margins of pasted image relative to base and output directory:
pega tests/images/base-1000x1000-m100-0-200-0.png tests/images/green-tree-python-226553_1920.jpg \
--margins 140 40 240 40 --output-dir tests/output/
Show command help:
pega -h
## Credits
Test images:
* [green-tree-python-226553_1920.jpg](https://pixabay.com/photos/226553)
* [line-660781_1920.jpg](https://pixabay.com/photos/660781)
* [snake-1285354_640.jpg](https://pixabay.com/photos/1285354)
* [snake-37585_640.png](https://pixabay.com/photos/37585/)
## License
`pega` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.