https://github.com/per1234/batch-smart-resize
GIMP script-fu for batch resizing of images
https://github.com/per1234/batch-smart-resize
gimp script-fu
Last synced: about 1 month ago
JSON representation
GIMP script-fu for batch resizing of images
- Host: GitHub
- URL: https://github.com/per1234/batch-smart-resize
- Owner: per1234
- License: mit
- Created: 2015-10-19T12:35:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T07:44:49.000Z (over 1 year ago)
- Last Synced: 2025-03-06T18:05:19.746Z (about 2 months ago)
- Topics: gimp, script-fu
- Language: Scheme
- Size: 39.1 KB
- Stars: 46
- Watchers: 6
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# batch-smart-resize
[GIMP](http://gimp.org) 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.#### Installation
- Download https://github.com/per1234/batch-smart-resize/archive/master.zip
- Unzip and move the file batch-smart-resize.scm to your GIMP scripts folder. You can find the location of the scripts folder by going to **Edit > Preferences > Folders > Scripts**.
- If GIMP is running click **Filters > Script-Fu > Refresh Scripts**.#### Usage
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 http://docs.gimp.org/en/gimp-images-out.html#file-jpeg-save.#### Contributing
Pull requests or issue reports are welcome! Please see the [contribution rules](https://github.com/per1234/batch-smart-resize/blob/master/.github/CONTRIBUTING.md) for instructions.