Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GGR from Image
#28
Ok, just for that svg-gradients plugin, finally found it in my archive, it is one of Tin's plugins but for Gimp 2.8

lines 37-39 are set up for a regular Gimp and you can 'hard encode' the path to your version of Gimp

Code:
#where gradient folder is located, the ~ will be expanded by calling os.path.expanduser() function later
#gradient_folder = "~/.gimp-2.8/gradients/";
gradient_folder = os.path.join("~",".gimp-2.8","gradients","") #as suggested by dinasset to not hardcode slashes.

To make it more portable comment out line 39 and add a line as;

Code:
#where gradient folder is located, the ~ will be expanded by calling os.path.expanduser() function later
#gradient_folder = "~/.gimp-2.8/gradients/";
#gradient_folder = os.path.join("~",".gimp-2.8","gradients","") #as suggested by dinasset to not hardcode slashes.

gradient_folder = os.path.join(gimp.directory, "gradients", "")

That is working here, linux Gimp 2.10.32 also in a Win10 VM both for regular Gimp and Samj portable.

It is not bad for making a simple gradient but for those hard edges, some hand editing is needed. Not a bad way of getting an initial SVG gradient template.

If you do not fancy editing the plugin, the edited version attached.


Attached Files
.zip   svg-gradients.zip (Size: 3.31 KB / Downloads: 101)
Reply


Messages In This Thread
GGR from Image - by meetdilip - 10-10-2021, 04:13 PM
RE: ggr from Image - by PixLab - 10-10-2021, 04:51 PM
RE: ggr from Image - by rich2005 - 10-10-2021, 05:00 PM
RE: ggr from Image - by Logansfury - 08-07-2024, 02:06 PM
RE: ggr from Image - by rich2005 - 08-07-2024, 02:59 PM
RE: ggr from Image - by meetdilip - 10-10-2021, 05:23 PM
RE: ggr from Image - by meetdilip - 10-10-2021, 07:45 PM
RE: ggr from Image - by rich2005 - 10-10-2021, 08:25 PM
RE: ggr from Image - by PixLab - 10-11-2021, 04:38 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 06:23 AM
RE: ggr from Image - by PixLab - 10-11-2021, 06:49 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 06:52 AM
RE: ggr from Image - by Krikor - 10-11-2021, 04:25 PM
RE: ggr from Image - by rich2005 - 10-11-2021, 07:15 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 08:07 AM
RE: ggr from Image - by PixLab - 10-11-2021, 07:38 AM
RE: ggr from Image - by PixLab - 10-11-2021, 08:21 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 08:26 AM
RE: ggr from Image - by rich2005 - 10-11-2021, 08:35 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 08:44 AM
RE: ggr from Image - by rich2005 - 10-11-2021, 09:34 AM
RE: ggr from Image - by meetdilip - 10-11-2021, 09:40 AM
RE: GGR from Image - by Krikor - 10-06-2022, 03:08 AM
RE: GGR from Image - by Ofnuts - 10-06-2022, 08:22 AM
RE: GGR from Image - by rickk - 10-10-2022, 08:52 PM
RE: GGR from Image - by PixLab - 10-06-2022, 04:19 AM
RE: GGR from Image - by rich2005 - 10-06-2022, 08:12 AM
RE: GGR from Image - by rich2005 - 10-06-2022, 02:17 PM
RE: GGR from Image - by Krikor - 10-06-2022, 07:45 PM
RE: GGR from Image - by Krikor - 10-07-2022, 12:15 AM
RE: GGR from Image - by rich2005 - 10-07-2022, 08:50 AM
RE: GGR from Image - by Ofnuts - 10-07-2022, 11:49 AM
RE: GGR from Image - by rich2005 - 10-07-2022, 12:02 PM
RE: GGR from Image - by Krikor - 10-11-2022, 01:12 AM

Forum Jump: