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.
convert -identify without copying image?
-
- Posts: 13
- Joined: 2012-06-11T07:39:40-07:00
- Authentication code: 13
Re: convert -identify without copying image?
Why can't you simply usecapncrunch9834 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.
Code: Select all
identify -verbose imageN.jpg > info.txt
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: convert -identify without copying image?
I believe this is really what you want:
convert yourimage -verbose info: > yourimage_info.txt
see
http://www.imagemagick.org/Usage/files/#info
convert yourimage -verbose info: > yourimage_info.txt
see
http://www.imagemagick.org/Usage/files/#info
-
- Posts: 13
- Joined: 2012-06-11T07:39:40-07:00
- Authentication code: 13
Re: convert -identify without copying image?
That's the ticket! Thank you fmw42. As usual, you got it right.
Thanks!
Thanks!
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert -identify without copying image?
But this also works...
See Identify and its Alternatives in IM Examples, basics
http://www.imagemagick.org/Usage/basics/#identify
Code: Select all
convert image.png -identify null:
http://www.imagemagick.org/Usage/basics/#identify
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/