Mô tả
A WordPress plugin that automatically generates a colors palette (6 colors) for any uploaded image to the WordPress media
library. In addition, to the colors palette, it generates a dominant color which can be overridden by color from the generated colors palette.
All generated colors are hexadecimal values.
This plugin provides a shortcode [webkew_dc field_name=”” override_field=””] which can returns a dominant color of any specific image specified using the shortcode parameters.
One use-case of this shortcode is the following: You are a web agency, and you want to create webpage for every client’s project you have built. You want to give each page a background color that’s based on the color of the client’s brand/logo or any specific color you specify.
Instead of assigning the colors manually, this plugin will generate the dominant color automatically for you and the shortcode will provide you with that color.
The shortcode gives you also some flexibility by using parameters when using the shortcode:
1. field_name: this could be the name of image custom field or the string “featured” to select the featured image of the post/page/custom post type. The dominant color of the image specified here will be returned as a hexadecimal value.
2. override_field: ignore the dominant color provided by the previous field and use the name of another custom field in post/page/custom post type. The color specified in this field will be returned as a hexadecimal value.
If the image specified in field_name
doesn’t have a dominant color, and the override_field
is empty, the shortcode will return the value of the fallback color which can be set in the WordPress admin panel under Settings –> General section.
Ảnh màn hình
Cài đặt
Install the plugin and start using it!
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“WebKew Image Dominant Color Generator” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “WebKew Image Dominant Color Generator” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0.0
- Plugin released.