Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jpeg file loaded with script-fu not considered imported
#3
(09-02-2022, 11:40 AM)Ofnuts Wrote: You can use gimp-image-set-name and gimp-image-set-file-name to make the image ready to save where you want.

Thanks, but it seems that gimp-image-set-name does not exist in Gimp 2.10 (not mentioned in the reference manual, and triggers an error unbound variable: gimp-image-set-name), and I did try gimp-image-set-filename without success (it allows to change the name but not the extension that is still changed to png for export). gimp-item-set-name does not seem to apply to image either (error gimp: Gimp-Core-CRITICAL: gimp_item_tree_rename_item: assertion 'GIMP_IS_ITEM_TREE (tree)' failed)

(09-02-2022, 11:40 AM)Ofnuts Wrote: It is not mentioned anywhere that there is a one-to-one mapping between the API functions and UI actions (which is fortunate, otherwise you wouldn't be able to script variants of theses UI actions). While some API calls can replace several UI actions,many UI actions require several API calls.

True, got it. Still I can't find the API calls to replace this UI action and reach the same state...  Sad
Reply


Messages In This Thread
RE: Jpeg file loaded with script-fu not considered imported - by cyril42e - 09-04-2022, 05:38 PM

Forum Jump: