Exported xbs scripts are incomplete

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: helmut, XnTriq, xnview

rystaman
Posts: 5
Joined: Sat Aug 03, 2024 10:09 am

Exported xbs scripts are incomplete

Post by rystaman »

Hi all,

I now need to utilise nconvert via terminal as xnconvert cannot be executed via CLI so I've started to export my .xbs scripts for nconvert usage.

However, these .bat files are always incomplete and do not contain all of the action information. I'm not sure if this a mac specific issue?

For example:

Image
Image

The .bat file that is exported is:

Code: Select all

nconvert -ratio -rtype lanczos -rflag decr   -dpi 300 
I've also tried using xnview to do this also but with no success. Any reason why the .bat file is incomplete?

Feel like I'm going to have to create the script from scratch on nconvert
cday
XnThusiast
Posts: 4374
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: xbs export for Nconvert - Incomplete

Post by cday »

Scripts output from XnConvert currently do not include input and output terms, I think that the developer may have agreed in principle to add them when he can, but as the sole developer of all xnview software Pierre's workload is very high!

In addition, not all image processing options available in XnConvert are currently supported in NConvert, but Pierre has in the past been quite responsive to requests to add missing options... :D

Your best option is probably to either create your scripts using the options available in the NConvert help file, or to review and edit exported scripts as necessary if you find that works for you.

I have also noted in the past that exported scripts often include terms that are unnecessary, possibly because they define default values that are set automatically when the software is run, which can slightly complicate displaying scripts when requesting support.