GIMP script-fu for batch resizing of images
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of per1234:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


GIMP script-fu for batch resizing images.

  • Maximum height and width can be specified.
  • Crops to layer mask.
  • Optional padding in any color to the full maximum dimensions.



The script dialog can be accessed at: File > Create > batch-smart-resize.

  • Source Folder - The folder that contains the source images. All files in the folder must be valid image files or the script will fail with the error: Error: Procedure execution of gimp-file-load failed: Unknown file type.
  • Destination Folder - The folder where the processed images will be saved to.
  • Output Filename Modifier - A string to add to the end of the output filenames.
  • Output Type - File type to use for the processed images.
  • Output Quality - Determines the compression level for JPEG Output Type. A higher value will produce better image quality and larger file size.
  • Max Width - The maximum width of the processed image.
  • Max Height - The maximum height of the processed image.
  • Pad - If this box is checked then the script will add background to size the image to the full maximum dimensions. This can be useful to avoid having sites such as Etsy and Handmade at Amazon crop your image thumbnails to an arbitrary aspect ratio.
  • Padding Color - Color used for padding if enabled.
  • JPEG DCT Method - This parameter can only be set by scripts that call script-fu-batch-smart-resize. 0==integer, 1==fixed, 2==float. The default value is 0. For details on the DCT methods see


Pull requests or issue reports are welcome! Please see the contribution rules for instructions.