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

 Download package
version 1.0.0

NuGet install instructions for Umbraco 7.10.0-7.13.0

Install-Package Our.Umbraco.ImageColorPicker

Package owner

Peter Gregory

Peter Gregory

Peter has 1614 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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Peter Gregory
  • Created: 23/01/2019
  • Current version 1.0.0
  • .NET version 4.5
  • License MIT
  • Downloads on Our: 298
  • Downloads on NuGet: 1.3K
  • Total downloads : 1.6K