Skip to content

Commit

Permalink
Merge pull request #2049 from neos/dimaip-docs-forceCrop
Browse files Browse the repository at this point in the history
DOCS: document forceCrop feature
  • Loading branch information
daniellienert committed May 15, 2018
2 parents 2cf19ee + 8138529 commit 1d305b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Documentation/References/PropertyEditorReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ example::
resize: true

If cropping is enabled, you might want to enforce a certain aspect ratio, which can be done by setting
``crop.aspectRatio.locked.width`` and ``crop.aspectRatio.locked.height``. In the following example, the
``crop.aspectRatio.locked.width`` and ``crop.aspectRatio.locked.height``. To show the crop dialog automatically on image upload, configure the ``crop.aspectRatio.forceCrop`` option. In the following example, the
image format must be ``16:9``::

'teaserImage'
Expand All @@ -557,6 +557,7 @@ image format must be ``16:9``::
crop: true
crop:
aspectRatio:
forceCrop: true
locked:
width: 16
height: 9
Expand Down Expand Up @@ -616,6 +617,9 @@ Options Reference:

``aspectRatio``

``forceCrop``
Show the crop dialog on image upload

``locked``
Locks the aspect ratio to a specific width/height ratio

Expand Down

0 comments on commit 1d305b4

Please sign in to comment.