But in your example, you need to load different xbs scripts 3 times, right?m.Th. wrote: Sat Nov 30, 2019 9:44 am In just one Batch we will
- generate all the image sizes of an application (small, medium, large etc.) to publish on Google Play, Apple Store, Windows Store etc.
- generate all the image sizes for a site (thumbnails, full, watermarked etc.)
We will have the following actions:
Resize to: Height = 1080
Custom Script: copy {filename} {filename_noExt}_screen
Resize to: 640
Custom Script: copy {filename} {filename_noExt}_640x320
Resize to: 128
Custom Script: copy {filename} {filename_noExt}_128x128
Something like this.
Add the ability to launch into "Batch Convert" custom script
Moderators: helmut, XnTriq, xnview
Re: Add the ability to launch into "Batch Convert" custom sc
Pierre.
Re: Add the ability to launch into "Batch Convert" custom script
xnview wrote: Tue Feb 18, 2020 3:37 pm But in your example, you need to load different xbs scripts 3 times, right?
Currently Batch Convert can only produce one set of outputs when run, can a single xbs script launch Batch Convert three times to produce the three output batches required?m.Th. wrote: Sat Nov 30, 2019 9:44 am Not quite.
3 different .bat scripts, (perhaps) yes. But it can be done in just one xbs having 3 times the Resize and 3 times the Custom Script action, if someone starts with Resize from the biggest dimension towards the smallest.
No problem using a multi-line NConvert .bat file, though...
Re: Add the ability to launch into "Batch Convert" custom script
Having Custom Shell .CMD/.BAT/.EXE files in Batch Convert means that in these .CMD files (for Windows) the user can do whatever he wants.cday wrote: Wed Feb 19, 2020 6:30 pmxnview wrote: Tue Feb 18, 2020 3:37 pm But in your example, you need to load different xbs scripts 3 times, right?Currently Batch Convert can only produce one set of outputs when run, can a single xbs script launch Batch Convert three times to produce the three output batches required?m.Th. wrote: Sat Nov 30, 2019 9:44 am Not quite.
3 different .bat scripts, (perhaps) yes. But it can be done in just one xbs having 3 times the Resize and 3 times the Custom Script action, if someone starts with Resize from the biggest dimension towards the smallest.
No problem using a multi-line NConvert .bat file, though...
For example let's say that I have one .JPG. If I run it now through Batch Convert I will obtain one result.
If I add there a Custom .VBS (Visual Basic Script) with
for i=1 to 100
copy {Input_Filename} to {Input_Filename} & i
next
will output from its belly 100 files, outside of the 'regular' result file.
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Add the ability to launch into "Batch Convert" custom script
the custom script is executed for each files once conversion is finished, right?
Pierre.
Re: Add the ability to launch into "Batch Convert" custom script
For each file at the place where is inserted in the „Actions” list. It is a problem for you to „take back” the resulted file in the memory?xnview wrote: Thu Feb 27, 2020 11:13 am the custom script is executed for each files once conversion is finished, right?
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
-
- Posts: 1
- Joined: Fri Mar 13, 2020 11:12 am
Re: Add the ability to launch into "Batch Convert" custom script
Hi, I am using xnconvert from a quite long time and have being spending 30-40 mins getting the images converted to different pixels and sizes. Is there any JS script for the Xnconvert from which i can automate the process??
Re: Add the ability to launch into "Batch Convert" custom script
On the Actions tab at bottom left, there is an option to save the existing settings so that they can be reloaded later, so you could save multiple settings files for the different pixels and sizes you need...Vaibhav Garg wrote: Fri Mar 13, 2020 11:17 am Hi, I am using xnconvert from a quite long time and have being spending 30-40 mins getting the images converted to different pixels and sizes. Is there any JS script for the Xnconvert from which i can automate the process??
You could also in principle create multiple instances of XnConvert with different settings that are reloaded when they are opened.
Or, if you are familiar with using the command line, it would be possible to create an NConvert (the command line software) batch file .bat which could produce multiple versions of a set of input files in a single operation.