gotcha

Author Topic: Changing master color  (Read 3686 times)

May 09, 2017, 08:30:44 AM
Read 3686 times

PapyJP

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Gender
    Male

    Male
Hello!
I'm not a regular user of Inkscape, I apologize if my question is straight forward.

I received a file in SVG format which is a sort of "shades of brown" (see attached file)
I would like to change it to "shades of green", but I have not been able to find any information about the way to perform such an operation.

Thanks for your help
« Last Edit: May 10, 2017, 01:07:39 AM by PapyJP »

May 09, 2017, 09:31:36 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Yes, in this case it is possible.  But not in one step.  Well.....actually one step might be possible.....  If it can be done with layer blend modes, Lazur might be able to say how.  Or I'll bet there's a filter which would do it too.  I'd have to experiment myself, to figure out which one.  But Lazur can probably say which one to use.

Ok, the one which looks like the best one to me, is Filters menu > Color > Color Shift....
However, it doesn't seem to be exactly what you want.  Because for the darker brown colors, they are so dark, that when you change to green, they just still look nearly black.  But you can try it, to see what it looks like.

Be sure to select all.  Then open the filter dialog and set the Shift slider bar to something around 75, and set Saturation to 100%.  It looks like green is anywhere between around 65 to 85 along the Shift bar, and you can experiment about the exact setting.  I would leave Saturation at 100%.

Here's how I would do it, without a filter.  Everything in the file is colored with gradients.  So all you'd have to do is edit the gradients.  There are 4 paths in all, which are grouped several times.  Here's what I would suggest:

1 - Ctrl A (select all)
2 - Click the Ungroup button (:ung: on the command bar) several times, until the status bar says "No groups to ungroup"
3 - Deselect everything (click on open area of canvas)
4 - Press Tab key once (selects the first object)
5 - Switch to the Gradient tool   :grad:
6 - Click on one of the gradient stops (which are little circles on each end of the gradient handle, and diamonds in between).  Might as well start with one of the end stops (a circle)
7 - Now, when you click on a color in the palette which is just above the status bar, it will change the color for that stop.
8 - Click on the next stop, and change its color, and continue along until you've changed all the stops' colors.
9 - Switch back to Selection tool  :sel:
10 - Deselect everything
11 - Press the Tab key twice (selects the 2nd object)
12 - Repeat step 5 through 10
13 - Press Tab 3 times to select the 3rd object and 4 times for the 4th, and changing all the stops as you go.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

May 09, 2017, 09:54:24 AM
Reply #2

PapyJP

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Gender
    Male

    Male
Thanks for your answer
I tried to perform the steps you told me.
It's practically impossible to do, there are 90 stops in that file.
I have a png version of the same stuff in green, but I have not been able to convert it to svg (see below), and it is too small for what I intend to do

May 09, 2017, 10:19:26 AM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
90?!  No, I looked.  There aren't more than 5 per object, if you just consider the part of the gradients that affect the objects.  All the 4 gradients are larger than the objects, and many stops don't even affect the objects.  They're far outside the object.  You could delete them, and not affect the colors in the the image.  Plus, some of the stops are so similar in color (I mean that are next to each other on the handle), they might not even be needed.

I think the reason you see 90 stops is because there are many gradients in the file, which are not being used.  Try this.  Deselect everything, then File menu > Clean Up Document.  Keep your eye on the status bar, and it will tell you how many defs were removed.  It showed me 67!  And clearly, a lot of those are gradients.

Personally, I would edit the gradients.  If I knew exactly the shades you want to use, I'd offer to make the edits for you.  It wouldn't take more than 10 or 15 minutes for me.  Maybe half hour for a newbie, I would guess.

You could try using Path menu > Trace Bitmap on the small green PNG, and it would make vector paths for you.  Then you could easily scale it (because of vector properties).  However, results are usually not very good for small images.  And especially where gradients are used, it just turns into a mess.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

May 09, 2017, 10:29:24 AM
Reply #4

PapyJP

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Gender
    Male

    Male
Thanks Brynn!
I'll try tomorrow and I'll keep you informed.

May 09, 2017, 02:55:23 PM
Reply #5

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Another quick option:

Select group
Extensions -> Color -> HSL Adjust (settings see screenshot)

Bildschirmfoto_2017-05-09_23-53-34.png
*Bildschirmfoto_2017-05-09_23-53-34.png
(205.78 kB . 941x582)
(viewed 249 times)

May 09, 2017, 03:05:13 PM
Reply #6

PapyJP

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Gender
    Male

    Male
Thanks Moini
This seems easier to use than the previous solution
I'll try tomorrow morning

May 09, 2017, 06:34:18 PM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ah yes.  I was pretty sure there would be a way to do it with filters.  I just didn't know which one.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

May 10, 2017, 01:07:15 AM
Reply #8

PapyJP

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Gender
    Male

    Male
Yes, it was the right solution, I mean the sort of solution I was looking for.
Many thanks to both of you

May 10, 2017, 10:18:21 AM
Reply #9

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
@Brynn: it's not a filter. The extension really changes the paths' colors :)

May 11, 2017, 02:15:28 PM
Reply #10

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Oh, I see.  Then  that's much better than a filter!
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann