You are here

Read a xcf File into Gimp and display it (python-fu)

Hi, after using script-fu for a while I try now to do something in Python-Fu, this works fine, but I don't find a funktion to read an xcf file into gimp and display it afterwards. Is there any sample code or hint availabe how to do this ?
thanks in advance, best regards

A rough example:

infilepath = "~/bar/foo.xcf"
# open file
image = pdb.gimp_file_load(infilepath, infilepath, run_mode=RUN_INTERACTIVE)
# display it
display = Display(image)
# displays are objects implemented by Pygimp, no need to go through the PDB
# displays not visible until you flush them

Subscribe to Comments for "Read a xcf File into Gimp and display it (python-fu)"