{"id":71335,"date":"2017-07-06T19:57:12","date_gmt":"2017-07-06T19:57:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-image-color-palette\/"},"modified":"2017-08-14T18:10:01","modified_gmt":"2017-08-14T18:10:01","slug":"wp-image-color-palette","status":"publish","type":"plugin","link":"https:\/\/mai.wordpress.org\/plugins\/wp-image-color-palette\/","author":15154931,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.0","stable_tag":"1.4.0","tested":"4.8.28","requires":"4.8","requires_php":"","requires_plugins":"","header_name":"WP Image Color Palette","header_author":"Marvin Kronenfeld","header_description":"This is a short description of what the plugin does. It's displayed in the WordPress admin area.","assets_banners_color":"7f9099","last_updated":"2017-08-14 18:10:01","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/wp-styles.de","header_plugin_uri":"https:\/\/github.com\/mkronenfeld\/WP-Image-Color-Palette","header_author_uri":"https:\/\/wp-styles.de","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1519,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Enhancements and minor bugfixes. See https:\/\/github.com\/mkronenfeld\/WP-Image-Color-Palette\/releases<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1713321","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1713321","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1713321","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1713321","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.3.0","1.3.1","1.4.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[143605,17381,133,143606,18781],"plugin_category":[50],"plugin_contributors":[131976],"plugin_business_model":[],"class_list":["post-71335","plugin","type-plugin","status-publish","hentry","plugin_tags-color-extraction","plugin_tags-extraction","plugin_tags-image","plugin_tags-image-palette","plugin_tags-swatches","plugin_category-media","plugin_contributors-mkronenfeld","plugin_committers-mkronenfeld"],"banners":{"banner":"https:\/\/ps.w.org\/wp-image-color-palette\/assets\/banner-772x250.jpg?rev=1713321","banner_2x":"https:\/\/ps.w.org\/wp-image-color-palette\/assets\/banner-1544x500.jpg?rev=1713321","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-image-color-palette\/assets\/icon-128x128.jpg?rev=1713321","icon_2x":"https:\/\/ps.w.org\/wp-image-color-palette\/assets\/icon-256x256.jpg?rev=1713321","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Features:<\/h4>\n\n<ul>\n<li>Extracts colors from attachment images and saves it to the post meta.<\/li>\n<li>Several php functions to receive the post meta or extract data from images on the fly.<\/li>\n<\/ul>\n\n<h3>PHP functions<\/h3>\n\n<p>You can find your image swatches in the post meta. There are two global php functions to get these values:<\/p>\n\n<pre><code>wpip_get_post_thumbnail_color( int|WP_Post $post )\n<\/code><\/pre>\n\n<p>Gets the main rgb color from a post.<\/p>\n\n<pre><code>wpip_get_post_thumbnail_colors( int|WP_Post $post )\n<\/code><\/pre>\n\n<p>Gets the main rgb colors from a post.<\/p>\n\n<p>Advanced users may also like the following functions to extract the colors from any image they want in WordPress.<\/p>\n\n<pre><code>wpip_get_image_color( string $file, int $precision = 20, int $palette_length = 5 )\n<\/code><\/pre>\n\n<p>Gets the main color from an image.<\/p>\n\n<pre><code>wpip_get_image_colors( string $file, int $precision = 20, int $palette_length = 5 )\n<\/code><\/pre>\n\n<p>Gets the image color palette.<\/p>\n\n<h3>After activation<\/h3>\n\n<ol>\n<li>Visit the 'Image Color Palette' page in your 'Tools' menu.<\/li>\n<li>Check the Debug information. If everything looks good, you are ready to off.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Visit 'Plugins &gt; Add New'<\/li>\n<li>Search for 'WP Image Color Palette'<\/li>\n<li>Activate WP Image Color Palette from your Plugins page.<\/li>\n<li>Go to \u201cafter activation\u201d below.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Visit 'Plugins &gt; Add New'<\/li>\n<li>Search for 'WP Image Color Palette'<\/li>\n<li>Activate WP Image Color Palette from your Plugins page.<\/li>\n<li>Go to \u201cafter activation\u201d below.<\/li>\n<\/ol><\/dd>\n<dt>How can I get the colors from my post?<\/dt>\n<dd><p>Short: <code>wpip_get_post_thumbnail_colors<\/code><\/p>\n\n<p>You can find a list of all functions in the PHP functions section.<\/p><\/dd>\n<dt>Why are there no colors in my post?<\/dt>\n<dd><p>Short: Update your post (again).<\/p>\n\n<p>The color palette for a post is generated the moment you save a post or page. So you have to save a post at least once, after the Plugin was activated.<\/p>\n\n<p>A functionality for a bulk update is already on the roadmap.<\/p><\/dd>\n<dt>Why is post type XY not in the post-type list?<\/dt>\n<dd><p>Only post types with 'custom-fields' support can be selected. Check your post type with the <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/post_type_supports\">post_type_support<\/a> function.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4<\/h4>\n\n<p>Release Date: August 14th, 2017<\/p>\n\n<ul>\n<li>Enhancements\n\n<ul>\n<li>New bulk 'Update the Image Color Palette' action for your selected post type.<\/li>\n<li>Improved the debugging section in the admin area.\n\n<ul>\n<li>Traffic lights status<\/li>\n<li>Human readable error list<\/li>\n<li>Settings dump for error reports<\/li>\n<\/ul><\/li>\n<li>Switched the precision input type in the Admin area into a select list.\n\n<ul>\n<li>Decreased the default precision from 20 to 25.<\/li>\n<\/ul><\/li>\n<li>Added global functions to the README file.<\/li>\n<li>Added plugin assets for the WordPress.org SVN.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<p>Release Date: Juli 27th, 2017<\/p>\n\n<ul>\n<li>Bugfixes\n\n<ul>\n<li>Fixed the Palette length field in the admin area.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<p>Release Date: Juli 22nd, 2017<\/p>\n\n<ul>\n<li>Enhancements\n\n<ul>\n<li>Now the Image Color Palette plugin is really able to save the whole image palette!\n\n<ul>\n<li>Added the global function <code>wpip_get_post_thumbnail_colors<\/code><\/li>\n<li>Check the FAQ for more useful functions.<\/li>\n<\/ul><\/li>\n<li>Uninstalling the plugin now removes all of its post meta and plugin option.<\/li>\n<li>Minor performance improvements due to better conditional loading behaviour.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<p>Release Date: Juli 9th, 2017<\/p>\n\n<ul>\n<li>Enhancements\n\n<ul>\n<li>Admin users can change several plugin options in the admin area.\n\n<ul>\n<li>Post type, default: post<\/li>\n<li>Precision, default: 20<\/li>\n<li>Palette length, default: 3<\/li>\n<li>Graphics library, default: gd<\/li>\n<\/ul><\/li>\n<li>Improved FAQ section for the WordPress.org plugin page.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<p>Release Date: July 7th, 2017<\/p>\n\n<ul>\n<li>Enhancements\n\n<ul>\n<li>Added the 'Image Color Palette' settings page to the 'Tools' menu.<\/li>\n<\/ul><\/li>\n<\/ul>","raw_excerpt":"Gets your attachment&#039;s dominant colors.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/71335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=71335"}],"author":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mkronenfeld"}],"wp:attachment":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=71335"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=71335"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=71335"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=71335"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=71335"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=71335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}