{"id":37695,"date":"2015-07-21T10:02:59","date_gmt":"2015-07-21T10:02:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dominant-color\/"},"modified":"2024-04-16T08:15:03","modified_gmt":"2024-04-16T08:15:03","slug":"dominant-color","status":"publish","type":"plugin","link":"https:\/\/scn.wordpress.org\/plugins\/dominant-color\/","author":5860598,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.0","stable_tag":"2.2.0","tested":"6.5.8","requires":"5.4","requires_php":"7.2","requires_plugins":null,"header_name":"Dominant Color","header_author":"Liam Gladdy","header_description":"","assets_banners_color":"2f373c","last_updated":"2024-04-16 08:15:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/gladdy.uk","rating":4.8,"author_block_rating":0,"active_installs":300,"downloads":8084,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0":{"tag":"1.0","author":"lgladdy","date":"2015-07-21 10:07:11"},"2.0":{"tag":"2.0","author":"lgladdy","date":"2016-02-29 11:03:05"},"2.0.1":{"tag":"2.0.1","author":"lgladdy","date":"2016-02-29 11:35:55"},"2.1.0":{"tag":"2.1.0","author":"lgladdy","date":"2016-02-29 13:00:40"},"2.2.0":{"tag":"2.2.0","author":"lgladdy","date":"2024-04-16 08:15:03"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":1,"5":4},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":1360664,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1360704,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1360704,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","2.0.1","2.1.0","2.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1360704,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1360704,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1360704,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Shows the plugin in use on hellobrstl.com","2":"Shows the plugin in use on hellobrstl.com","3":"Shows the plugin in use on hellobrstl.com"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1257,8289,24493,24492,133],"plugin_category":[50],"plugin_contributors":[78098],"plugin_business_model":[],"class_list":["post-37695","plugin","type-plugin","status-publish","hentry","plugin_tags-color","plugin_tags-colour","plugin_tags-dominance","plugin_tags-dominant","plugin_tags-image","plugin_category-media","plugin_contributors-lgladdy","plugin_committers-lgladdy"],"banners":{"banner":"https:\/\/ps.w.org\/dominant-color\/assets\/banner-772x250.png?rev=1360704","banner_2x":"https:\/\/ps.w.org\/dominant-color\/assets\/banner-1544x500.png?rev=1360704","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/dominant-color\/assets\/icon.svg?rev=1360664","icon":"https:\/\/ps.w.org\/dominant-color\/assets\/icon.svg?rev=1360664","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dominant-color\/assets\/screenshot-1.png?rev=1360704","caption":"Shows the plugin in use on hellobrstl.com"},{"src":"https:\/\/ps.w.org\/dominant-color\/assets\/screenshot-2.png?rev=1360704","caption":"Shows the plugin in use on hellobrstl.com"},{"src":"https:\/\/ps.w.org\/dominant-color\/assets\/screenshot-3.png?rev=1360704","caption":"Shows the plugin in use on hellobrstl.com"}],"raw_content":"<!--section=description-->\n<p>A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta.<\/p>\n\n<!--section=installation-->\n<p>The dominant color and color palette is automatically saved on upload and edit to post meta.<\/p>\n\n<p>You need to then use get_post_meta to retrieve the \"dominant_color_hex\" or \"dominant_color_rgb\" meta key. hex returns a string, including the #, rgb returns an array with key 0 as red, 1 as green, and 2 as blue.<\/p>\n\n<p>Alternatively, you can use the meta keys \"color_palette_rgb\" and \"color_palette_hex\" to get an array of 8 colors that feature prominently in the image.<\/p>\n\n<!--section=changelog-->\n2.2.0\n\n<p>Modernise javascript for deprecated jQuery handlers\nUpdate to latest version of <a href=\"https:\/\/github.com\/ksubileau\/color-thief-php\">PHP Color Thief<\/a>\nBump version requirements to match color thief and a modern-ish WordPress (5.4+)<\/p>\n\n2.1.0\n\n<p>Support translated languages (Submit your translation at translate.wordpress.org!)<\/p>\n\n2.0.1\n\n<p>Fix a bug where loading our JS in the footer would cause a javascript error.<\/p>\n\n2.0\n\n<p>Add a colour picker to the attachment edit screen to override the dominant color with a custom pick.\nThe WordPress media gallery will now let you pick a dominant color override which will be returned in place of dominant_color_hex\/rgb when set.\nIt'll also let you generate a palette for legacy images uploaded before you installed the plugin.<\/p>\n\n1.0\n\n<p>Initial Build<\/p>","raw_excerpt":"A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta. Requires: PHP &gt;= 7.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/37695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=37695"}],"author":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lgladdy"}],"wp:attachment":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=37695"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=37695"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=37695"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=37695"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=37695"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=37695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}