Image Widget Crop

You need 2 modules for this one.. Image Widget Crop and the Crop module itself. You can crop a image field with it. A lot of configurations... Look also at the documentation. See link..

After installation you see a menu link in 'Structure'.

Drupal8_001775.png

You can set the aspect ratio and the minimum of size. Here i take a 1:1 ratio (=square) and i want the crop to be al least 300 px.

Drupal8_001781.png

Afterwards you need to make image style.


Drupal8_001777.png

Choose manual crop.
Drupal8_001778.png

Take the crop style you want.


Drupal8_001779.png

If the crop is bigger than 300 px i scale it to 300px.


Drupal8_001780.png

now you make a content type with an image field. Set the form configuration to the widget.

Drupal8_001782.png

Configurate..


Drupal8_001783.png

Then you need to set the display also.


Drupal8_001784.png

Choose the image style.


Drupal8_001785.png

Finaly you can put a picture on the site. Ik took a large one and made a square crop.


Drupal8_001786.png

In the display the crop is reduced to 300 X 300 px. Cool isn't.


Drupal8_001787.png