[wordpress插件] Color Palette Generator调色板生成器

wordpress 插件 文章 2020-03-27 17:10 537 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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"]

您还可以使用以下简码来显示带有调色板的特定图像: [colorpalette attachment =“ 56”优势=“ false” colors =“ 10” size =“大” 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.

    如果您不喜欢插件输出调色板的方式,或者您想自己创建自定义颜色查询,请使用wordpress分类法功能。

    There are 2 new taxonomies added when the plugin is activated: cpg_dominant_color and cpg_palette.

    激活插件后,添加了2种新的分类法: cpg_dominant_color 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).

    第二个是调色板,颜色的数量取决于网站所有者输入的内容(默认= 10)。

    Special thanks

    特别感谢

      TODO

      待办事项

        • Better uninstall functions (attachment meta needs to be removed)
        • 更好的卸载功能(需要删除附件meta)

        • Generate palette on upload
        • 在上传时生成调色板

安装步骤

Automatic Installation:

自动安装:

    1. Go to Admin – Plugins – Add New and search for “color palette generator”
    2. 转到“管理员”-“插件”-“添加新内容”并搜索“调色板生成器”

    3. Click the Install Button
    4. 点击“安装”按钮

    5. Click ‘Activate’
    6. 点击“激活”

    7. Go to Media > Color Palette Generator and start generating
    8. 转到媒体>调色板生成器并开始生成

    Manual Installation:

    手动安装:

      1. Download color-palette-generator.zip
      2. 下载color-palette-generator.zip

      3. Unzip and upload the ‘color-palette-generator’ folder to your ‘/wp-content/plugins/’ directory
      4. 解压缩“ color-palette-generator”文件夹并将其上传到您的“ / wp-content / plugins /”目录

      5. Activate the plugin through the ‘Plugins’ menu in WordPress
      6. 通过WordPress中的“插件”菜单激活插件

      7. Go to Media > Color Palette Generator and start generating
      8. 转到媒体>调色板生成器并开始生成

下载地址
https://downloads.wordpress.org/plugin/color-palette-generator.zip
-EOF-

AI助手支持GPT4.0