CSSgram module supplements Drupal Image styling experience by making Instagram like filters available to your Drupal 8 site images, we do this with help of CSSgram library.
Beauty of this module is, it simply uses css to beautify your image.
Few CSSGram sample filters applied to an image.
How CSSGram Module works?
CSSGram module uses CSSGram Library for adding filter effects via CSS to the image fields. Module extends Field Formatter Settings to add image filter for that particular field. CSSGram extends field formatter settings and hence these filters can be applied on top of the existing available image formatters and image presets. Allowing you to use your desired image preset along with CSSGram filters.
- Download and enable CSSGram module (https://www.drupal.org/project/cssgram)
- Visit Manage Display of content type and for the desired image field, click on the setting link under format column.
- Select Filter option lets us choose from the available image filters. Just select the desired image filter and hit update button.
- Save the settings and visit the content display page.
Devs have the option to use these filters anywhere on the site by just attaching the ‘cssgram/cssgram’ library and then applying any of the available css filter class to the wrapper element.