It is currently Sun Nov 08, 2026 1:51 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scheme Script- Problem saving PNG
PostPosted: Sat Jul 22, 2017 8:00 pm  (#1) 
Offline
GimpChat Member

Joined: Jul 22, 2017
Posts: 5
GIMP Version: 2.8.14
Operating System: Mac OS
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
file-png-save



I'm calling file-png-save but getting an error on drawable:

(define (script-fu-magic-scans image drawable)
   ..
   (file-png-save RUN-NONINTERACTIVE image drawable newfilename newfilename 0 0 0 0 0 0 0)
   ..

(script-fu-register
   "script-fu-magic-scans"
        ..
   SF-IMAGE    "Image" 0
   SF-DRAWABLE "Drawable" 0
)


Image


Attachment:
PNG Save.png
PNG Save.png [ 37.67 KiB | Viewed 3263 times ]


I'm using the drawable I'm passing in. Is there a different way to do this?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Scheme Script- Problem saving PNG
PostPosted: Sat Jul 22, 2017 8:11 pm  (#2) 
Offline
GimpChat Member

Joined: Jul 22, 2017
Posts: 5
Figured it out. Had to get the updated drawable. (Go figure)

(define newDrawable (car (gimp-image-active-drawable image)))
(file-png-save RUN-NONINTERACTIVE image newDrawable newfilename newfilename 0 0 0 0 0 0 0)


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group