blob: 91ce5438c82c3913d26bf04b7c6b2ccced710ac5 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
ufo-launch --quieter dummy-data width=512 height=512 ! crop width=512 height=512 ! write filename=out.tif
width=$(tiffinfo out.tif | grep -oE "Image Width: [0-9]+" | grep -oE "[0-9]+")
height=$(tiffinfo out.tif | grep -oE "Image Length: [0-9]+" | grep -oE "[0-9]+")
[ "$width" == "512" ] && [ "$height" == "512" ] && exit 0 || exit 1
|