Page 1 of 1

batch processing - possibilty to save after every conversion step

Posted: Sun Aug 18, 2019 4:36 pm
by speedie277
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>

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

Posted: Tue Sep 03, 2019 2:07 pm
by xnview
you would like a multi size saving?

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

Posted: Mon Sep 09, 2019 7:21 am
by m.Th.
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