Crop
To run sample code for crop transformation, follow these steps:
- Clone the maya-cli repository
git clone https://github.com/0xmayalabs/maya-cli.git
- Cd into the directory
cd maya-cli
- To prove that an image is cropped correctly, run:
docker run --rm -v "$(pwd):/opt/maya" 0xmayalabs/maya-cli:latest prove crop \ --original-image=./sample/original.png \ --final-image=./sample/cropped.png \ --height-start-new=0 \ --width-start-new=0 \ --proof-dir=proofs
- To verify that an image is cropped correctly, run:
docker run --rm -v "$(pwd):/opt/maya" 0xmayalabs/maya-cli:latest verify crop \ --final-image=./sample/cropped.png \ --proof-dir=proofs
Please note that the repository contains sample images that you can use to get started quickly,
but you don't need to clone the repository to run the prove
or verify
commands.