picture resolution into a filename

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

Moderators: helmut, XnTriq, xnview

Post Reply
Bobus
Posts: 3
Joined: Thu May 05, 2011 10:49 am

picture resolution into a filename

Post by Bobus »

Hi guys,

Finally got tired of resizing my pictures manually through XnView GUI and decided to do it with nConvert :idea: . Then possibly will add it as a button for Total Commander toolbar. But that's later, now, a question, is it possible to add picture resolution to the resulting filename? E.g. to resize picture_big.jpg to picture_small_1024x653.jpg?

Preferably with nconvert, but other options considered, except for manual renaming : )

Cheers,
Bobus :mrgreen:
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: picture resolution into a filename

Post by marsh »

XnView's batch rename function can add resolution to filename by using file template. This way you would have current resolution.
Ex.
<filename>_<Width>_<Height>_####

XnConvert can also add resolution (taken from original) to output filename .
Bobus
Posts: 3
Joined: Thu May 05, 2011 10:49 am

Re: picture resolution into a filename

Post by Bobus »

marsh, thank you for a reply. Could you please explain how to use XnConvert to add resulting file resolution/pix dimensions to its filename? I did searched XnConvert help, but nothing close came up by 'resolution' or 'dimensions' keywords.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: picture resolution into a filename

Post by marsh »

Using resulting resolution I was unable to discover.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: picture resolution into a filename

Post by xnview »

you have {DPI}
Pierre.
Bobus
Posts: 3
Joined: Thu May 05, 2011 10:49 am

Re: picture resolution into a filename

Post by Bobus »

marsh, okay, what about the original's pixel dimensions? May be it is possible to run nConvert twice to rename the file after resizing?
xnview, would it be possible to kindly add such a feature? As I understand it, DPI is for completely different purpose.
Imesh
Posts: 3
Joined: Mon Jun 13, 2011 5:52 am

Re: picture resolution into a filename

Post by Imesh »

yes DPI is for another purpose...
I'm an Undergraduate and I love to learn
Post Reply