Using -info to return width (only)
Posted: Thu Aug 25, 2011 6:09 am
Hello
I need only to get the width of an image returned when calling -info. The reason for this is that in my ruby script I'm setting a variable called 'pic_width':
pic_width = system("nconvert.exe -info C:\mine.tif")
Is there a way I can specify "only give me the width back please" ? I want to avoid having to run a regular expression in my ruby code order to find the value for width.
Thanks very much, Michelle
I need only to get the width of an image returned when calling -info. The reason for this is that in my ruby script I'm setting a variable called 'pic_width':
pic_width = system("nconvert.exe -info C:\mine.tif")
Is there a way I can specify "only give me the width back please" ? I want to avoid having to run a regular expression in my ruby code order to find the value for width.
Thanks very much, Michelle