HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/bug/imagemagick-6-common/script
#!/bin/sh

set -e

# Pretty echo, underline the specified string:
pecho() {
    echo "$@"
    echo "$@"|sed 's/./-/g'
}

# work even with graphicsmagick
# will detect graphickmagick using as compat
versioncheck() {
    if test -x "/usr/bin/$@"; then
	echo -n "$@: ";
	"$@" -version 2> /dev/null | head -1 | sed s/Version://g;
    fi
}

exec >&3

pecho "ImageMagick program version"
versioncheck animate
versioncheck compare
versioncheck convert
versioncheck composite
versioncheck conjure
versioncheck display
versioncheck identify
versioncheck import
versioncheck mogrify
versioncheck montage
versioncheck stream