
內容簡介
此外掛適用於喜歡對圖像進行進一步處理的部落客或喜歡按顏色篩選產品的網店所有者。插入圖像時,您可以選擇顯示該圖像的調色板。您還可以使用以下短碼在內容中顯示帶有調色板的特定圖像:[colorpalette attachment="56"
dominant="false" colors="10" size="large" random="true"]
功能
為每個圖像生成顏色調色板
生成所有圖像的顏色調色板數據
允許配置每個圖像的獨特顏色數量
允許配置自動在附件頁面上附加調色板
查看生成的調色板統計信息
按顏色篩選附件
將顏色搜索窗口小部件添加到側邊欄中
使用短碼在內容中顯示帶有調色板的圖像
開發人員
如果您不喜歡插件輸出的調色板方式,或者想要自己創建自定義顏色查詢,請使用 WordPress 稅項功能。啟用插件時會添加 2 個新的稅項:`cpg_dominant_color` 和 `cpg_palette`。第一個稅項為每個圖像保留單一顏色,即主要顏色(此顏色用於將圖像與顏色搜索功能中使用的主要顏色之一相連)。第二個稅項保留調色板,顏色數量基於站點所有者輸入的數量(默認為 10)。
特別感謝
Lokesh Dhakar,為色彩小偷庫
Projekod,為Round Color 類別
待辦事項
更好的卸載功能(需要刪除附件元數據)
上傳時生成調色板
外掛標籤
開發者團隊
原文外掛簡介
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
Projekod, for the Round Color class
TODO
Better uninstall functions (attachment meta needs to be removed)
Generate palette on upload
