Computing for humanities

Batch resize images

I will be using the portable version of xnview. Two steps are required to resize images in 1920×1080:

Use the batch processing of the TOOL menu to do that.

  • output format: jpg

Resize

Crop

Code

The .xbs files produced by xnview looks like this:


resize( 1 lanczos 1920 0 0 1 0 )
crop( 0 0 1920 1080 )
settings( 3 0 1 0 0 0 0 )
output_path( C:\Users\Fra\Pictures\zUnsplash\Wordpress )
output( jpeg 80 0 0 0 0 0 1 1 1 0 1 )