Gimp and Svg gradients

Post about projects that involve using Inkscape and GIMP.
User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Gimp and Svg gradients

Postby capnhud » Tue Dec 18, 2007 12:25 am

I found this bit of info from the the gimp documentation

New in GIMP 2.2 is the ability to load gradient files in SVG format, used by many vector graphics programs. To make GIMP load an SVG gradient file, all you need to do is place it in the gradients folder of your personal GIMP directory, or any other folder in your gradient search path.


Tip

You can find a large number of interesting SVG gradients on the web, in particular at OpenClipArt Gradients [OPENCLIPART-GRADIENT]. You won't be able to see what these gradients look like unless your browser supports SVG, but that won't prevent you from downloading them.


If I understand this correctly any object that is created in inscape would be a svg gradient correct? And if so I would assume the gradient would have the same stops as in the vector file which I should be able to use in the gimp. Is this correct? If not how do you create a svg gradient?


Ok if anyone is interested in this is how I figured out to load svg gradients into the gimp.

1. Open or create inkscape document with the object that has the gradient you want or made.
1a. If you open document with object that has gradient you want then follow step 2 if you just created the object with gradient then just delete object and save as plain svg.

2. Copy object with gradient into a new document and delete the object save as plain svg.
3. Open svg document with text editor and delete everything betwen </def></svg> tags
4. Save as whateveryounamedit.svg
5. Place in personal gimp gradient folder
6. Open gimp and you will see in the gradients a gradient with an id from the document, duplicate and rename the gradient and it will be a .ggr which you can just drop into any document or just resuse in the gimp.

A little troublesome but you get the gradient from a svg and can just drag and drop into a document instead of having opening the said document to just get an object that has a gradient you want. I hope I have made sense this is my first time trying to point something that has bothered me for the longest with being able to reuse different gradients. Namely opening a file just to get an objects gradient and copy the object to another document.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Gimp and Svg gradients

Postby microUgly » Tue Dec 18, 2007 8:03 am

Is Open Clip Art now hosting gradients?

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: Gimp and Svg gradients

Postby capnhud » Tue Dec 18, 2007 8:41 am

"Is Open Clip Art now hosting gradients?


Not sure if openclipart is but this method is for when you come across or create an svg such as "daddies little girl" you normally in order to reuse a gradient would have to take and open that document and then copy the object that has a particular gradient and paste it into another document and save as plain svg to use in the gimp. With this method you create a ggr file that can be used in inkscape or the gimp.

It is actually very easy to use this method with the development version of inkscape imho.


Return to “Inkscape & GIMP”