Actions

Difference between revisions of "How to batch convert and batch process with XnView MP"

From XnView Wiki

m (Typos etc.)
Line 1: Line 1:
You can Batch Resize Images with [https://www.xnview.com/en/xnviewmp XnView MP] or [https://www.xnview.com/en/xnconvert XnConvert]
You can batch resize images with [https://www.xnview.com/en/xnviewmp XnView MP] or [https://www.xnview.com/en/xnconvert XnConvert]


== Setup resizing ==
== Setup resizing ==


When you start the Batch Convert tools, you have this window. Move to the "Actions" tab.  
When you start the Batch Convert tools, you have this window. Move to the "Actions" tab.


[[File:BatchConvert-1.png]]
[[File:BatchConvert-1.png]]


 
So now add the "Resize" action by clicking on "Add action > Image > Resize".
So now add the "Resize" action by clicking on "Add action > Image > Resize"


[[File:BatchConvert-2.png]]
[[File:BatchConvert-2.png]]


The settings for "Resize" action will be added
The settings for "Resize" action will be added.


[[File:BatchConvert-3.png]]
[[File:BatchConvert-3.png]]


By changing the "Mode" setting, you set which new size will be used.  
By changing the "Mode" setting, you set which new size will be used.


[[File:BatchConvert-4.png]]
[[File:BatchConvert-4.png]]


* Fit: The image's size fit in the given width & height
* Fit: The image's size fits in the given width & height
* Fill: The image's size fill the given width & height
* Fill: The image's size fills the given width & height
* Longest side: Set the value for longest side
* Longest side: Set the value for longest side
* Shortest side: Set the value for shortest side
* Shortest side: Set the value for shortest side
* Mpixels: Set the value of mega pixels (width * height / 1000)
* Mpixels: Set the value of megapixels (width * height / 1000)
* Width: Set the value for width
* Width: Set the value for width
* Height: Set the value for height
* Height: Set the value for height
("Keep ratio" will keep the ratio of image)
("Keep ratio" will keep the aspect ratio of the image)


By changing the "Enlarge/Reduce" setting, you can tell to the image processor to skip images that are larger or smaller than result size.  
By changing the "Enlarge/Reduce" setting, you can tell the image processor to skip images with dimensions larger or smaller than that of the desired result.


[[File:BatchConvert-5.png]]
[[File:BatchConvert-5.png]]


By changing the "Resample" setting, you choose the quality of downscaling. 'Lanczos' is often better quality for photos.  
By changing the "Resample" setting, you choose the quality of downscaling. "Lanczos" is often better quality for photos.


[[File:BatchConvert-6.png]]
[[File:BatchConvert-6.png]]
Line 39: Line 38:
== Setup output ==
== Setup output ==


Now if you got to "Output" tab, you can choose which output folder, filename and format you would like.  
Now if you go to "Output" tab, you can choose which output folder, filename and format you would like.


[[File:BatchConvert-7.png]]
[[File:BatchConvert-7.png]]


In "Filename" field, you can use [[Place holder in XnView MP|place holder]]
In the "Filename" field, you can use [[Place holder in XnView MP|place holder]].


By default, you have "Same as original" in format. The processor will try to save in the same format as source format, if it's not possible, JPEG will be used.  
By default, you have "Same as original" in format. The processor will try to save in the same format as the source format. If that's not possible, JPEG will be used.


[[File:BatchConvert-8.png]]
[[File:BatchConvert-8.png]]


Some format comes with its own settings, accessible from the “Settings” button directly underneath the pull-down menu.
Some format come with its own settings, accessible from the “Settings” button directly underneath the pull-down menu.
In case of JPEG files, the most crucial parameter is the compression/quality ratio.  
In case of JPEG files, the most crucial parameter is the compression/quality ratio.


[[File:BatchConvert-9.png]]
[[File:BatchConvert-9.png]]


By default, the processor use only one core of your CPU, you can speed up the process by enabling "Use CPU cores"
By default, the processor uses only one core of your CPU. You can speed up the process by enabling "Use CPU cores".


[[File:BatchConvert-10.png]]
[[File:BatchConvert-10.png]]
Line 60: Line 59:
== Save different presets ==
== Save different presets ==


You can save all settings in a preset, for easy reuse in the future.  
You can save all settings in a preset, for easy reuse in the future.


[[File:BatchConvert-16.png]]
[[File:BatchConvert-16.png]]


 
Now you can reuse saved presets.
Now you can reuse saved presets.  


[[File:BatchConvert-13.png]]
[[File:BatchConvert-13.png]]
Line 71: Line 69:
== Input and convert ==
== Input and convert ==


Now you can add a bunch of images by pressing "Add files" or "Add folder", or drag & dropping them.  
Images can be added by pressing "Add files" or "Add folder", or by drag & dropping them.
You can also sort your file list by moving files.  
You can also sort your file list by moving files.
 
[[File:BatchConvert-18.png]]
[[File:BatchConvert-18.png]]


Now click on "Convert" button to start process.  
Now click on the "Convert" button to start process.  


[[File:BatchConvert-17.png]]
[[File:BatchConvert-17.png]]
Line 81: Line 80:
Check the "Status" tab for errors or warnings.
Check the "Status" tab for errors or warnings.


== Apply effets ==
== Apply effects ==


In "Add actions" menu from "Actions" tab, you can add some effect like Image watermark, Text watermark, Cropping, Rotating, Image adjusting, ...
The "Add actions" menu in the "Actions" tab allows you to add effects like Image watermark, Text watermark, Cropping, Rotating, Image adjusting,

Revision as of 06:45, 26 November 2021

You can batch resize images with XnView MP or XnConvert

Setup resizing

When you start the Batch Convert tools, you have this window. Move to the "Actions" tab.

BatchConvert-1.png

So now add the "Resize" action by clicking on "Add action > Image > Resize".

BatchConvert-2.png

The settings for "Resize" action will be added.

BatchConvert-3.png

By changing the "Mode" setting, you set which new size will be used.

BatchConvert-4.png

  • Fit: The image's size fits in the given width & height
  • Fill: The image's size fills the given width & height
  • Longest side: Set the value for longest side
  • Shortest side: Set the value for shortest side
  • Mpixels: Set the value of megapixels (width * height / 1000)
  • Width: Set the value for width
  • Height: Set the value for height

("Keep ratio" will keep the aspect ratio of the image)

By changing the "Enlarge/Reduce" setting, you can tell the image processor to skip images with dimensions larger or smaller than that of the desired result.

BatchConvert-5.png

By changing the "Resample" setting, you choose the quality of downscaling. "Lanczos" is often better quality for photos.

BatchConvert-6.png

Setup output

Now if you go to "Output" tab, you can choose which output folder, filename and format you would like.

BatchConvert-7.png

In the "Filename" field, you can use place holder.

By default, you have "Same as original" in format. The processor will try to save in the same format as the source format. If that's not possible, JPEG will be used.

BatchConvert-8.png

Some format come with its own settings, accessible from the “Settings” button directly underneath the pull-down menu. In case of JPEG files, the most crucial parameter is the compression/quality ratio.

BatchConvert-9.png

By default, the processor uses only one core of your CPU. You can speed up the process by enabling "Use CPU cores".

BatchConvert-10.png

Save different presets

You can save all settings in a preset, for easy reuse in the future.

BatchConvert-16.png

Now you can reuse saved presets.

BatchConvert-13.png

Input and convert

Images can be added by pressing "Add files" or "Add folder", or by drag & dropping them. You can also sort your file list by moving files.

BatchConvert-18.png

Now click on the "Convert" button to start process.

BatchConvert-17.png

Check the "Status" tab for errors or warnings.

Apply effects

The "Add actions" menu in the "Actions" tab allows you to add effects like Image watermark, Text watermark, Cropping, Rotating, Image adjusting, …