Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to view an image that I've opened with Script-Fu?

Status
Not open for further replies.

dkotch

Technical User
Sep 26, 2005
2
US
I am learning to write scripts for Script-Fu. I've managed to load an image with gimp-file-load. However, I cannot figure out how to display the image. Can somebody show me a short script that will not only open the image but also display it? Many thanks!!
 
More specifically, why doesn't this work:

(define (script-fu-add-corners2 infile)
(let*
(theImage (car (file-jpeg-load 1 infile infile)))
(gimp-display-image-new theImage)
)
)

(script-fu-register
"script-fu-add-corners2"
"<Toolbox>/Xtns/Script-Fu/DK's Stuff/Add Corners 2"
"Adds corners"
"D Kotch"
"Copyright 2005, D Kotch"
"September 24, 2005"
""
SF-FILENAME "FileName" "C:/Program Files/GIMP-2.0/share/gimp/2.0/scripts/IMG_1322.jpg")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top