Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transform an image into different aspect ratios
#6
(01-29-2024, 10:59 PM)SpaceMonkey Wrote:
Quote:because you removed the thing that describes the input arguments by commenting in out, instead of making it an empty list. But it's better to keep it in an have an image argument to your plugin, so you can work even if several images are open in Gimp:

Ah ok! I thought I could comment it out without any harm. Do I need at least one parameter, or is an empty bracket okay too?

You need a least the PF_IMAGE parameter (and the corresponding parameter in the function definition).

(01-29-2024, 10:59 PM)SpaceMonkey Wrote:
Quote:So, given this the code sorta works(*) but:
  • you save the image with its initial extension (say, PNG) even if you enforce the jpeg format.

I only open and save jpegs so that wont be an issue.

Until it becomes one  Big Grin
Reply


Messages In This Thread
RE: Transform an image into different aspect ratios - by Ofnuts - 01-30-2024, 09:34 AM

Forum Jump: