identify console output can't be detected by ruby (and convert works ok)
Posted: 2015-04-14T22:50:40-07:00
Windows 7, latest ImageMagick-6.9.1-1-Q16-x64-static.exe
Ruby 1.9 and 2.0
When I try
from Ruby (backticks mean running external command), it catches all the output (help text in this case).
This doesn't happen with
the result is always "" (empty string).
Tried redirecting error output, etc - nothing helps.
Is the identify's output somehow different from other tools? Is it easy to fix? My script depends on the output, and fails when running in the mentioned configuration (works with Linux at the same time).
PS The only trick that worked was `echo | identify`, but this is only good for Windows then, not for Unix/Linux.
PPS I'm absolutely sure that there are no other tools in the system with the same name.
Ruby 1.9 and 2.0
When I try
Code: Select all
`convert`
This doesn't happen with
Code: Select all
`identify`
Tried redirecting error output, etc - nothing helps.
Is the identify's output somehow different from other tools? Is it easy to fix? My script depends on the output, and fails when running in the mentioned configuration (works with Linux at the same time).
PS The only trick that worked was `echo | identify`, but this is only good for Windows then, not for Unix/Linux.
PPS I'm absolutely sure that there are no other tools in the system with the same name.