08-25-2022, 07:47 AM
You need to know that most GIMP functions in script-fu return a list, not a single value, so you need to extract the first value from the list:
Code:
(newWidth (car (gimp-image-width image)))
(newHeight (car (gimp-image-height image)))