Skip to content

Instantly share code, notes, and snippets.

@yowasou
Created August 16, 2025 09:24
Show Gist options
  • Save yowasou/273785f3e2adac44098f23c832fef12d to your computer and use it in GitHub Desktop.
Save yowasou/273785f3e2adac44098f23c832fef12d to your computer and use it in GitHub Desktop.
(let* (
(img (car (gimp-image-list)))
(layer (car (gimp-image-get-active-layer img)))
(width (car (gimp-drawable-width layer)))
(height (car (gimp-drawable-height layer)))
(new-width(inexact->exact (floor (* {bairitsu} width))))
(new-height(inexact->exact (floor (* {bairitsu} height))))
)
(gimp-layer-scale layer new-width new-height INTERPOLATION-CUBIC)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment