Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple overwrite image script
#4
OK, you need to replace "text.jpg" with the file name of the image, using gimp-image-get-filename

For example:
Code:
(define (pirmas-crop image layer)
  (let* (
          (filename (car (gimp-image-get-filename image)))
        )
    (gimp-crop image 500 300 0 0)
    (file-jpeg-save 1 image layer filename filename 0.93 0 0 1 "" 2 0 0 0)
  )
)

(script-fu-register
  "pirmas-crop"
  "<Image>/Edgaro/Pirmas Crop"
  "Testinis variantas"
  "Edgaras"
  "Edgaras"
  "Rugsejo 19 d. 2017"
  "RGB*, GRAY*"
  SF-IMAGE "Image" 0
  SF-DRAWABLE "Layer" 0
)
Reply


Messages In This Thread
Simple overwrite image script - by Gravitus - 09-19-2017, 01:50 PM
RE: Simple overwrite image script - by Kevin - 09-19-2017, 02:19 PM
RE: Simple overwrite image script - by Gravitus - 09-20-2017, 12:15 PM
RE: Simple overwrite image script - by Kevin - 09-20-2017, 01:06 PM
RE: Simple overwrite image script - by Gravitus - 09-21-2017, 05:37 AM

Forum Jump: