Page 1 of 1
convert -identify without copying image?
Posted: 2012-08-11T04:47:04-07:00
by capncrunch9834
Is there a way to use convert -identify without copying the image to another file? It seems like I saw a post that discussed this but I can't find it anywhere.
On the windows cmd line I have something like this...
convert "imageIN.jpg" -verbose -identify "imageOUT.jpg" > info.txt
but what I am shooting for is something like...
convert "imageIN.jpg" -verbose -identify nul > info.txt
(or some equivalent)
All I want is the image info piped out to text without converting or copying the input image -- but to do so using convert only.
Re: convert -identify without copying image?
Posted: 2012-08-11T07:06:31-07:00
by Bonzo
Try using -ping
Untested
Code: Select all
identify -ping imageIN.jpg > info.txt
Re: convert -identify without copying image?
Posted: 2012-08-11T08:39:03-07:00
by pipitas
capncrunch9834 wrote:Is there a way to use convert -identify without copying the image to another file? It seems like I saw a post that discussed this but I can't find it anywhere.
On the windows cmd line I have something like this...
convert "imageIN.jpg" -verbose -identify "imageOUT.jpg" > info.txt
but what I am shooting for is something like...
convert "imageIN.jpg" -verbose -identify nul > info.txt
(or some equivalent)
All I want is the image info piped out to text without converting or copying the input image -- but to do so using convert only.
Why can't you simply use
Code: Select all
identify -verbose imageN.jpg > info.txt
?
Re: convert -identify without copying image?
Posted: 2012-08-11T10:44:53-07:00
by fmw42
I believe this is really what you want:
convert yourimage -verbose info: > yourimage_info.txt
see
http://www.imagemagick.org/Usage/files/#info
Re: convert -identify without copying image?
Posted: 2012-08-11T11:54:48-07:00
by capncrunch9834
That's the ticket! Thank you fmw42. As usual, you got it right.
Thanks!
Re: convert -identify without copying image?
Posted: 2012-08-16T18:17:14-07:00
by anthony
But this also works...
Code: Select all
convert image.png -identify null:
See Identify and its Alternatives in IM Examples, basics
http://www.imagemagick.org/Usage/basics/#identify