Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resize and convert a SVG image using a gimp script ?
#2
I have finally found my error. The transformations have to be done outside of the section that loads the image.

The following script works:

Code:
(define (convertresize in_filename out_filename width height)
   (let* (
           (image (car (gimp-file-load RUN-NONINTERACTIVE in_filename "")))
           (drawable (car (gimp-image-get-active-layer image)))
       )
       (gimp-image-scale-full image width height INTERPOLATION-CUBIC)
       (gimp-layer-resize-to-image-size drawable)
       (gimp-file-save RUN-NONINTERACTIVE image drawable out_filename out_filename)
       (gimp-image-delete image)
   )
)
Reply


Messages In This Thread
RE: Resize and convert a SVG image using a gimp script ? - by Alpha504 - 11-13-2024, 08:46 AM

Forum Jump: