
Usage
=====

After installing the module, you can use it in the following ways:

* Specify the ``darkroom`` widget when adding an image field to a view.
  Configuration values can be provided using the ``options`` attribute::

  <field name="image" widget="darkroom" options="{'minWidth': 100}"/>

  The widget passes options directly through to DarkroomJS, which supports the
  following:

  * minWidth
  * minHeight
  * maxWidth
  * maxHeight
  * ratio (aspect ratio)
  * backgroundColor


