Inkscape.org
Beginners' Questions Building a custom palette out of an image's colours
  1. #1
    OookLout OookLout @OookLout

    Hi all

    I'm new here and to InkScape - it's great and I just finished a cartoon for press. But I spent way too long fiddling with colours(colors?) and would now like my favourites available in the palette along the bottom. 

    The manual and other FAQ are way short on 'palette' info, and I don't think the few palette add-ons do what I want. I am happy to code or add text if required. Can anyone point me to a resource that explains customising the palette?

    Maybe it's pretty easy to do as standard but I missed it?      

    Tnx all

  2. #2
    Mike Matenkosky Mike Matenkosky @HikinMike

    This may help: https://www.youtube.com/watch?v=Y1E8YWOB_Yc

  3. #3
    Tyler Durden Tyler Durden @TylerDurden
    *

    Nick's video linked above saves the palette file in a poor location. The palette will be lost when updating Inkscape.

     

    I'd try this:

    • Save a copy of the document as a GIMP palette (.gpl), in the palettes directory of the user profile (see Preferences>System for location). You could save the copy with a descriptive name, e.g. "toon_Colors".
    • Navigate to the user palette directory and open the saved .gpl file in a text editor. Ensure the name-line has a descriptive name (some Inkscape versions do not save this) and save.

     

     

    Find the new palette in the menu (click triangle at the far right of the Palette):

     

  4. #4
    OookLout OookLout @OookLout

    OK thanks for the quick answers. Assuming this works, was it documented anywhere that I should have known about? If not, where should I document it for future users?

    I haven't seen an 'Anatomy of InkSpace' or equivalent anywhere, that might have this kind of useful relationships like it uses gpl palettes. As I never made friends with Gimp I don't have that kind of pre-knowledge (I come from the video and embedded software world!) and only recently had to deal with VFX, palettes and all that OpenImageIO stuff. So I'll get it together with Gimp and see what rubs off.   

    Cheers 

  5. #5
    Mike Matenkosky Mike Matenkosky @HikinMike

    Are you sure @TylerDurden? I'm pretty sure I've updated from 1.0 to 1.0.1 after I made a custom palette using Nick's tutorial.

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    @OookLout, There is no need to involve GIMP in this specific process, but it is a great companion to Inkscape for editing bitmap/raster images (which can be included in Inkscape documents). Inkscape simply uses the file format for cross compatibility.

    @HikinMike, I am not certain it will get clobbered, but the practice of saving to the user-profile can be applied across versions and platforms with confidence.

  7. #7
    OookLout OookLout @OookLout

    I forgot to say I'm on a 2011 MacBook which runs InkScape great, but does anyone know where InkScape keeps its file structure including palette .gpl files?

    Mac Finder doesn't reveal anything Inkscape-related apart from the app itself. (I haven't ever dug into an apps private data areas. My 'work' projects aren't Mac-related and I use git anyway). Mac search famously doesn't work very well but doesn't find any files on a hard drive search for *.gpl.

    @TylerDurden  I was not thinking of using Gimp other than to explore its family resemblances -  shared elements can sometimes be better documented in one program than in a sibling. But if the .gpl format is the only real link with Gimp I won't bother(yet) :-).  I have Affinity Photo for the simple things I need in bitmap format (mostly generating test images for VFX work).

     

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    The user profile is usually in a hidden directory. When opening Inkscape's Preferences dialog the System section usually shows the path for user data. The recent version can open the palettes folder directly.

  9. #9
    OookLout OookLout @OookLout
    👍👍*

    OK that all works both on PC and eventually on my MacBook. I had to open Mac Finder inside Inkscape preferences to copy in the saved .gpl palette file.  

    For Mac users: I found that Inkscape Preferences/System lists a 'Palettes' folder as being at /Users/Your_User_Name/Library/org.inkscape.Inkscape/config/inkscape/Palettes. There are no files listed there if I open it in Finder, although once you are there you can use Finder to copy new palettes in. Note I couldn't navigate to this folder using Finder outside Inkscape because there is no <visible> Library folder in my UserName folder.  So this is probably a Mac hidden-files thing - or a Un*x-style filesystem datafork thing, neither of which I know about - on the Mac I am a mere User, it's only on the PC I get under the hood. 

    Consider the matter closed :-)

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Building a custom palette out of an image's colours