XnConvert as command line tool?

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

XnConvert as command line tool?

Post by xnview »

NConvert has not all the features of XnConvert, so is it a good idea if XnConvert could convert files by passing a .xbs file
Pierre.
obelisk
Posts: 467
Joined: Fri Jan 09, 2009 9:54 am

Re: XnConvert as command line tool?

Post by obelisk »

Is this possible? Much easier than trying to make NConvert files work

XnConvert a.xbs a1.jpg .... a9.jpg


Also if you could run a batch on completion it would be great too
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert as command line tool?

Post by xnview »

obelisk wrote: Sun Feb 03, 2019 2:07 am Is this possible?
No, it's a question :)
Pierre.
obelisk
Posts: 467
Joined: Fri Jan 09, 2009 9:54 am

Re: XnConvert as command line tool?

Post by obelisk »

I think useful. I can make a bat file that calls

XnConvert a.xbs %*

Then drag jpg files to the bat and it converts all
Ahern
Posts: 1
Joined: Mon Nov 21, 2022 3:23 am

Re: XnConvert as command line tool?

Post by Ahern »

Will the function of XnConvert as a command-line tool still be developed?because NConvert cannot meet my needs, and I hope this function can be added.
Phred
Posts: 41
Joined: Fri Nov 06, 2009 3:48 pm
Location: SEAu

Re: XnConvert as command line tool?

Post by Phred »

Your question didn't get the attention it deserved, Pierre.
I'd say, most certainly Yes - that XnConvert should be a companion to NConvert and be capable of performing all the functions of the GUI.
It's very useful to be able to pass parameters to programs, of course, so if both your converters were developed side-by-side, we would have excellent usability options.

A definite Yes.
Regards, PhredE
Willing donor, if only a 'donor token' were supplied in return, putting 'Phred's XnView' or '$D', '$Dd', '$dd' (depending on size) or 'Donor Version' in the title bar. (See Wiztree for partial solution.)
And a local Help file :(
crazydaz
Posts: 21
Joined: Wed Nov 20, 2019 2:09 pm

Re: XnConvert as command line tool?

Post by crazydaz »

YES please! :!:
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert as command line tool?

Post by xnview »

Output should be in a dialog or in console?
Pierre.
linkakro
Posts: 4
Joined: Tue Dec 19, 2023 2:44 am

Re: XnConvert as command line tool?

Post by linkakro »

I believe this command line output should be by default in the stream output of the process, but as convenience it could have a command line option to enforce a dialog instead.
Cauhape
Posts: 2
Joined: Tue Jun 25, 2024 6:06 pm

Re: XnConvert as command line tool?

Post by Cauhape »

I would like to be able to call XnConvert from the command line so that I can call it from within a Python program.

If this is possible, please point me to where I can find online documentation.

Thanks!
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert as command line tool?

Post by xnview »

not enough feedback for this feature
Pierre.
akhilpuri2003
Posts: 1
Joined: Thu Jul 25, 2024 9:34 pm

Re: XnConvert as command line tool?

Post by akhilpuri2003 »

I would love for this feature to be available and am happy to be available to provide feedback to help develop this. My requirement is to resize files in bulk to multiple sizes/aspect ratios. So, if I have 100 files in a folder, I want them all to be resized to an aspect ratio of 2x3, 4x5 etc in one shot. Is this possible in some way?
cday
XnThusiast
Posts: 4136
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnConvert as command line tool?

Post by cday »

akhilpuri2003 wrote: Thu Jul 25, 2024 9:36 pm My requirement is to resize files in bulk to multiple sizes/aspect ratios. So, if I have 100 files in a folder, I want them all to be resized to an aspect ratio of 2x3, 4x5 etc in one shot. Is this possible in some way?
XnConvert when run from from the GUI or from the command line applies the same settings to all files loaded, so multiple runs with different settings would be required. It is however possible to save settings as a script that can be reloaded later, so alternative scripts could be created and saved for different required outputs. Another option would be to use multiple instances of XnConvert, for example ZIP versions with different settings

However, the command line utility NConvert could be used with a batch file script that could call the program multiple times to create multiple output versions of a set of files in a single run.
rystaman
Posts: 5
Joined: Sat Aug 03, 2024 10:09 am

Re: XnConvert as command line tool?

Post by rystaman »

Agreed would want this feature. Noticed that nConvert has a different file size on export so would definitely prefer to utilise XnConvert via command line