Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tip to Save ALL open files at once?
#15
(08-06-2023, 05:27 AM)PixLab Wrote:
(08-05-2023, 08:42 PM)Ofnuts Wrote:
(08-05-2023, 12:19 PM)rich2005 Wrote: I do not know why it should bring up the regular export dialogue you show.

Can be pretty handy when you don't want the defaults. In some of my scripts I use the RUN_INTERACTIVE & RUN_WITH_LAST_VALS so the script asks for the export parameters just for the first item.

You give me hope...
I did tried
Code:
(gimp-file-save RUN-INTERACTIVE & RUN-WITH-LAST-VALS
but I got an error, it seems that script/scheme has hard time with "&" (AND?)
What could be the grammar in scheme for that?

But maybe I got a XY problem, my goal is to make this script to work to export as webp too, but the export quality of webp is 0 (zero) without changing the RUN-NONNTERACTIVE, thus webps are full of pixelated squares, while others format like jpg/png/etc are just fine.

Just out of the box, scheme looks to me like hieroglyph > I found python a lot more human readable  Big Grin

I'm not using both flags together, but in the loop to save the files, the first file is saved with RUN_INTERACTIVE and the rest is saved with RUN_WITH_LAST_VALS. And that doesn't end there, file-save-* plugins have different behavior, depending on the RUN_* they save the active layer or the whole image, so the code does a layer_new_from_visible to a new image and saves that.
Reply


Messages In This Thread
Tip to Save ALL open files at once? - by Ptityo74 - 08-04-2023, 08:22 PM
RE: Tip to Save ALL open files at once? - by Ofnuts - 08-06-2023, 08:19 AM

Forum Jump: