1 vote

Image Color Picker

This is an Umbraco package. It allows editors to pick colors from images like the eye dropper tool in most popular image editors. Allows the editor to pick from image picked in other media picker properties on the same document type or, if they prefer, the user can configure the editor to use a media item as the source for the image.  This is useful if you have a predefined palette of colors.

Installation

- Nuget

https://www.nuget.org/packages/Our.Umbraco.ImageColorPicker/

Run this form your Package Manager Console in Visual Studio:

    PM> Install-Package Our.Umbraco.ImageColorPicker

- Umbraco Package

https://our.umbraco.com/packages/backoffice-extensions/image-color-picker/

- Manually

Download the code from GITHUB and copy it into you App_Plugin folder.

Configuration

- Using another media picker property as image source.

Create a new DataType and select 'Image Color Picker' as the Property Editor.

Enter the alias of the other property on the document type that holds the source image you want to pick the color from.  This must be a media picker type.

Set the max width and height (default 300px x 300px) of the display of image you are picking from.

- Using an existing media item

As mentioned this method is useful for selecting colors from a predefined approved range of colors as supplied by the designer.

Create a new DataType and during the configuration of the Property Editor select the 'Media Item' using the media picker instead of supplying the alias.

Getting the properties values

The property value saves as a string value holding a simple RGBA color value.  EG 

    rgba(255,255,255,1) 

which can be used in inline CSS applications.

Screenshots

Package owner

Peter Gregory

Peter Gregory

Peter has 1554 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.1.x (untested)
8.0.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Peter Gregory
  • Created: 23/01/2019
  • Current version 1.0.0
  • .net Version 4.5
  • License MIT
  • Downloads: 98