Drupal8

Drupal 8 add image style programmatically

Hi, during port to Drupal 8 one of my modules I had to create own image style in code. How I did that?

1) Follow image style page and create image style you need;

2) Follow conf sync page yoursite.com/admin/config/development/configuration/single/export, selecting "Image style" in "Configuration type" select list. Then select previously created image style in "Configuration name" select list. You will get all settings of Image style in "Here is your configuration:" text area. You should copy image style configuration starting from "name" key.

Tags: 
Subscribe to RSS - Drupal8