batch processing - possibilty to save after every conversion step

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

Post Reply
speedie277
Posts: 1
Joined: Sun Aug 18, 2019 4:09 pm

batch processing - possibilty to save after every conversion step

Post by speedie277 » Sun Aug 18, 2019 4:36 pm

Hi,
to speed things up and avoid unnecessary drive or network traffic it would be good to be able to have a save option after every conversion step during batch processing. That would really speed up the creation of multi size thumbnails.
for example:
-the original images (0001.jpg) is only read once at the beginning
-the image is manipulated, lets say scaled to 1500x...
-the image is saved as 0001-la.jpg
-the image is now manipulated further, lets say scaled to 750x...
-the image is saved as 0001-me.jpg
-the image is now manipulated further, lets say scaled to 320x...
-the image is saved as 0001-th.jpg
-the image is now manipulated further, lets say scaled to 120x120
-the image is saved as 0001-sq.jpg

That way the images only needs to be loaded once and afterwards only the much smaller thumbnails are written back to the drive.
The xbs would look something like that:
<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="combined">
<Resize mode="1" width="1500" height="0" unit="0" ratio="true" orientation="true" enlarge="0" resample="7" gamma_correct="false"/>
<Output folder="/i/galleries/MTB" filename="{Filename}-xl" case="0" startIndex="1" format="JPEG">
<Options overwrite="2" orgDate="true" keepMeta="true" keepICC="false" keepFolder="true" keepParentFolder="true" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="80" progressive="false" optimizeHuffman="false" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
</Output>

<Resize mode="1" width="1125" height="0" unit="0" ratio="true" orientation="true" enlarge="0" resample="7" gamma_correct="false"/>
<Output folder="/i/galleries/MTB" filename="{Filename}-la" case="0" startIndex="1" format="JPEG">
<Options overwrite="2" orgDate="true" keepMeta="true" keepICC="false" keepFolder="true" keepParentFolder="true" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="80" progressive="false" optimizeHuffman="false" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
</Output>

<Resize mode="1" width="750" height="0" unit="0" ratio="true" orientation="true" enlarge="0" resample="7" gamma_correct="false"/>
<Output folder="/i/galleries/MTB" filename="{Filename}-me" case="0" startIndex="1" format="JPEG">
<Options overwrite="2" orgDate="true" keepMeta="true" keepICC="false" keepFolder="true" keepParentFolder="true" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="80" progressive="false" optimizeHuffman="false" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
</Output>

<Resize mode="1" width="315" height="0" unit="0" ratio="true" orientation="true" enlarge="0" resample="7" gamma_correct="false"/>
<Output folder="/i/galleries/MTB" filename="{Filename}-th" case="0" startIndex="1" format="JPEG">
<Options overwrite="2" orgDate="true" keepMeta="true" keepICC="false" keepFolder="true" keepParentFolder="true" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="80" progressive="false" optimizeHuffman="false" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
</Output>

<Resize mode="2" width="120" height="0" unit="0" ratio="true" orientation="false" enlarge="0" resample="7" gamma_correct="false"/>
<Canvas_resize width="120" height="120" unit="0" relative="false" ratio="true" orientation="false" color="#ffffff" alpha="255" position="4"/>
<Output folder="/i/galleries/MTB" filename="{Filename}-sq" case="0" startIndex="1" format="JPEG">
<Options overwrite="2" orgDate="true" keepMeta="true" keepICC="false" keepFolder="true" keepParentFolder="true" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="80" progressive="false" optimizeHuffman="false" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
</Output>

</XnView_script>

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

Re: batch processing - possibilty to save after every conversion step

Post by xnview » Tue Sep 03, 2019 2:07 pm

you would like a multi size saving?
Pierre.

User avatar
m.Th.
XnThusiast
Posts: 1546
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: batch processing - possibilty to save after every conversion step

Post by m.Th. » Mon Sep 09, 2019 7:21 am

The best option by far here is a „Save As...” action in Batch Convert. There are others which would use it.

To have a real solution tough is to add in Batch Convert \ Actions tab under menu of „Add action >” a „File” section with the following actions:

1. „Save As...” (the main topic of this thread)
1.1. Parameters:
1.1.1. Destination Path (see the Output tab)
1.1.2. File name (see the Output tab)
1.1.3. Format (see the Output tab) (if it is difficult you can leave this out)

Description: saves the current state of the image from memory in the file described in the above parameters


2. „Copy original to...” (somewhat related; a great speedup; see it as a quick Import & Sort, useful for backups etc. - many programs have it)
2.1. Parameters:
2.1.1. Destination Path (see the Output tab)
2.1.2. File name (see the Output tab)

Description: just copies the original file in a new file described in the above parameters
m. Th.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

Post Reply