Page 1 of 1
ImageMagick -identify - Flow
Posted: Fri Sep 28, 2018 2:43 pm
by ChritianK
Hi,
Have a issue to made flow that can give the result from the magick -identify -verbose in a text file.
I try this but didn't know what's wrong or what's could be done to made it works ....
Didn't know if I must include in my variables >Job.Name.txt .... well, newbie in fact....

- image info in txt.png (70.77 KiB) Viewed 12371 times
Re: ImageMagick -identify - Flow
Posted: Fri Sep 28, 2018 3:18 pm
by Padawan
The ">" sign indicates you are trying to use a shell feature called "piping". The Switch execute command tool doesn't use a shell directly and therefore the redirecting doesn't work. You can work around this limitation by using a bat file with the command and let the "Execute Command" tool run the bat file. You can send the path to the job as argument to the bat file.
This page gives some more background and a (unfortunately Mac) example:
https://www.enfocus.com/en/support/know ... 000jfc9IAA
(It's the last point on the page, but the other points are certainly also worth reading)
If you do a search you'll most likely find examples on how to use bat files in Switch on this forum.
Re: ImageMagick -identify - Flow
Posted: Fri Sep 28, 2018 3:55 pm
by ChritianK
OK, I'm try to do it in bat file.
Thx
Re: ImageMagick -identify - Flow
Posted: Fri Sep 28, 2018 4:13 pm
by 3f8h.net
Depending on your exact needs you can use "convert.exe" to output the identical data to a json or xml and use this in switch later on.
Please be aware that "identify.exe" might be very slow depending on your files. You should finetune your query to use your desired output fields only.
Re: ImageMagick -identify - Flow
Posted: Fri Sep 28, 2018 4:31 pm
by ChritianK
OK, it could a good idea too, thx !
Re: ImageMagick -identify - Flow
Posted: Mon Oct 01, 2018 3:33 pm
by Padawan
Out of curiosity, what is the information you want to extract using ImageMagick and use?
Personally, I've never had the need to go beyond the built in Switch variables. I also know there is a free Switch App to see if there is a clipping path on an image.
Re: ImageMagick -identify - Flow
Posted: Thu Oct 04, 2018 3:00 pm
by ChritianK
want to see too the level of compression use in jpeg file (to check if it low quality or optimal)
Re: ImageMagick -identify - Flow
Posted: Thu Oct 04, 2018 5:46 pm
by Padawan
Thanks! I didn't know the it was possible to get an indication of the jpeg quality.