demo script - hash first frame
All checks were successful
All checks were successful
This commit is contained in:
parent
e5efa1e4f8
commit
45f5238f45
|
@ -7,12 +7,12 @@ if ! [ -f "$1" ]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
json=$(magick convert "$1" JSON:-)
|
json=$(magick convert "$1[0]" JSON:-)
|
||||||
|
|
||||||
width=$(echo $json | jq '.[0].image.geometry.width')
|
width=$(echo $json | jq '.[0].image.geometry.width')
|
||||||
height=$(echo $json | jq '.[0].image.geometry.height')
|
height=$(echo $json | jq '.[0].image.geometry.height')
|
||||||
|
|
||||||
magick convert "$1" RGBA:- | \
|
magick convert "$1[0]" RGBA:- | \
|
||||||
cargo r --example stdin --release -- \
|
cargo r --example stdin --release -- \
|
||||||
--width $width \
|
--width $width \
|
||||||
--height $height
|
--height $height
|
||||||
|
|
Loading…
Reference in a new issue