The response will be a JSON object with the application/json MIME type. If prefix is also set, its value will replace "image" in the CSS class names in the output CSS file.image-fg-1 The CSS output also includes white and black, to make displaying a colorPalette-swatch set easier. The foreground class has a color property defined, while the background class has a background-color property defined. Class pairs have a "foreground" and a "background" defintion. The response to the image request will be a CSS file with the text/css MIME type. It may return all six colors, a portion, or none, although most images will return a complete set. The dominance palette will vary (and may not be generated) depending on whether the image's colors meet the criteria for each name. The dominance palette set provides up to six named colors: The default palette set defaults to six colors, but can be overridden with the colors parameter. The "dominance" set also weights frequency, but selects the colors to provide a more coordinated palette across the image's colorspace and names the colors by their relative values, like Vibrant.js does. The default set is strictly algorithmic, based on frequency of the color in the image, and is always available. This parameter generally outputs two palette sets-both choose colors based on their dominance in the image. Palette extraction occurs after image processing, so applying any adjustments and cropping effects will change the color palette response. The palette parameter extracts a palette of color values from an image and returns them in the specified format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |