-
Notifications
You must be signed in to change notification settings - Fork 6
/
readme.txt
133 lines (86 loc) · 3.98 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
=== Color Palette Generator ===
Contributors: houkedekwant
Donate link: https://github.com/houke/
Tags: color palette, color palette generator, image, images, color, colour, colour palette, palette, attachments
Requires at least: 4.0
Tested up to: 4.9.8
Stable tag: trunk
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpg
Domain Path: /languages
Version: 1.7.0
This plugin generates color palettes for your WordPress images and appends them to your content.
== Description ==
This plugin is ideal for blog owners who like to do something more with their images, or for webshop owners who like to filter products by color. When inserting images you have the option to show the palette for that image. You can also use the following shortcode to show a specific image with palette: `[colorpalette attachment="56" dominant="false" colors="10" size="large" random="true"]`
= Features =
* Generate color palettes per image
* Bulk-generate color palettes for all images
* Allows configuration of number of unique colors per image
* Allows configuration of auto appending palettes on attachment pages
* See stats of generated palettes
* Filter attachments by color
* Add color search widget to your sidebar
* Use a shortcode to show an image with a palette in your content.
= Developers =
If you don't like the way the plugin outputs the palettes, or you want to create custom color queries yourself, use the wordpress taxonomy functions. There are 2 new taxonomies added when the plugin is activated: `cpg_dominant_color` and `cpg_palette`. The first one holds one color per image, the dominant color (this color is used to link the image to one of the main colors used in the color search functions). The second one holds the palette, and the number of colors is based on what the site owner has entered (default = 10).
= Special thanks =
* Lokesh Dhakar, for the [color thief library](https://github.com/lokesh/color-thief)
* Projekod, for the [Round Color class](https://github.com/Projekod/RoundColor)
= TODO =
* Better uninstall functions (attachment meta needs to be removed)
* Generate palette on upload
== Installation ==
Automatic Installation:
1. Go to Admin - Plugins - Add New and search for "color palette generator"
2. Click the Install Button
3. Click 'Activate'
4. Go to Media > Color Palette Generator and start generating
Manual Installation:
1. Download color-palette-generator.zip
2. Unzip and upload the 'color-palette-generator' folder to your '/wp-content/plugins/' directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Go to Media > Color Palette Generator and start generating
== Screenshots ==
1. The Color palette generator settings page
2. A new media library column will be available
3. When inserting images into your content, new options will be available
4. Add a widget to your sidebar
5. The palette in use
6. A list of generated palettes
== Upgrade Notice ==
== Changelog ==
= 1.7.0 =
* Added support for automatic generation of palettes. Disabled by default.
= 1.6.2 =
* Fixed php warning
* Fixed missing color palettes if no dominant colors are set
= 1.6.1 =
* Fixed php warning
= 1.6 =
* Changed the dasboard layout
* Added a remove button to remove all generated palettes
* Added an option to control how the palette colors are shown
* The bulk generation is now around 10 times faster (especially noticeable with more than 10.000 images in your library)
= 1.5.2 =
* Fixed loading of front-end styles
= 1.5.1 =
* Removed 'Dominant: ' title before color codes when hovering over palette colors.
= 1.5 =
* Added 2 new settings to allow clicking the dominant & palette colors. Each color will link to the search page of the related dominant color.
= 1.4 =
* Added new shortcode to show all generate palettes (without the images)
= 1.3 =
* Validate, sanetize & escape
= 1.2 =
* Removed TAH references
= 1.1 =
* Fix WordPress warnings
= 1.0 =
* First official release
= 0.9 =
* Final beta release
= 0.8 =
* Beta release
= 0.7 =
* Beta release