This Inkscape extension allows you to generate swatches from the predominant colors within an image. It utilizes the color-thief-py library created by Shipeng Feng.
To install the Inkscape Color Thief extension, follow these steps:
-
Download the following files:
color_colorthief.inx
color_colorthief.py
colorthief.py
-
Place these files into your Inkscape user extension folder, which can be found at the following locations:
- On Linux:
~/.config/inkscape/extensions
- On Windows:
%AppData%/inkscape/extensions
- On macOS:
/Users/<username>/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions
- On Linux:
Pro tip: You can conveniently download the entire project as a zip file by clicking
the green Code
button and selecting Download ZIP
, or by visiting this link:
Download Inkscape Color Thief.
To use this extension, follow these simple steps:
- Open a raster image in Inkscape (prefer
Embed
,Link
sometimes screws the original image). - Select the image.
- Navigate to
Extensions
in the menu, and then chooseColor
and thenColor Thief...
from the dropdown. - Specify the number of colors you desire. Duplicated colors will not be added to the swatches.
Copyright 2023 - Gianluigi Tiesi
This software is distributed under the terms of the BSD license.
For more details, please refer to the LICENSE
file.