convert "info:" option as a way of using convert for identify?
Posted: 2016-12-06T06:16:55-07:00
[Background information:I was trying to help someone with setting up imagemagick on a synology machine.
I managed to get "convert" available through some package installer there.
However, no executable for "identify" was part of the installed package.
We do need "identify" though. (for mediawiki).]
I noticed (by surfing the web) that "convert" has an option "info:" which seemed to imply that it provides
a way to use "convert" to get "identify" functionality.
I did not find that in the documentation though (manpage, convert -h).
Question1: Is "convert [options] info:" (almost) equivalent to "identify [options]"?
Question2: If so, would the following script be a way of providing a missing "identify"? (This is probably outside the scope of the mailinglist)
-----------------------------------------
#/bin/bash
PARAMS=""
for PARAM in "$@"
do
PARAMS="${PARAMS} \"${PARAM}\""
done
bash -c "convert ${PARAMS} info:"
---------------------------------------------
Thanks!
Lourens
I managed to get "convert" available through some package installer there.
However, no executable for "identify" was part of the installed package.
We do need "identify" though. (for mediawiki).]
I noticed (by surfing the web) that "convert" has an option "info:" which seemed to imply that it provides
a way to use "convert" to get "identify" functionality.
I did not find that in the documentation though (manpage, convert -h).
Question1: Is "convert [options] info:" (almost) equivalent to "identify [options]"?
Question2: If so, would the following script be a way of providing a missing "identify"? (This is probably outside the scope of the mailinglist)
-----------------------------------------
#/bin/bash
PARAMS=""
for PARAM in "$@"
do
PARAMS="${PARAMS} \"${PARAM}\""
done
bash -c "convert ${PARAMS} info:"
---------------------------------------------
Thanks!
Lourens