10-07-2022, 08:50 AM
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
To make it more portable comment out line 39 and add a line as;
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.
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.