Using -info to return width (only)

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
michelle
Posts: 7
Joined: Thu Aug 25, 2011 2:07 am

Using -info to return width (only)

Post by michelle »

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
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using -info to return width (only)

Post by xnview »

no sorry but -info return all information
Pierre.
Post Reply