Skip to content

Commit d9515e6

Browse files
committed
switched from identity to file
ImageMagick is no longer required to run the tests
1 parent 5610c0d commit d9515e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ function assert_svg {
4646
grep -q svg "${1:?}" || fail "expected $1 to be an SVG"
4747
}
4848

49-
# checks the dimensions of an image, requires ImageMagick
49+
# checks the dimensions of an image
5050
function assert_dimensions {
5151
expected_dimensions="${1:?}"
52-
actual_dimensions=$(identify -format "%wx%h" "${2:?}")
52+
actual_dimensions=$(file "${2:?}" | grep -oE "[0-9]+x[0-9]+")
5353

5454
if [ "$expected_dimensions" == "$actual_dimensions" ]; then
5555
true

0 commit comments

Comments
 (0)