Skip to content
Snippets Groups Projects

INTRODUCTION

JSON:API Image Styles is a JSON:API extension that exposes image style urls of a drupal image to jsonapi export. This allows e.g. crop-defined image styles to be consumed by frontend builds.

REQUIREMENTS

  • PHP 7.4 (note: this requirement is not enforced by composer.json due to Drupal core's support of PHP 7.3. Requiring PHP 7.4 breaks testing against due to core's composer.json.)
  • Drupal 9+

INSTALLATION

  • Install as any contributed Drupal module. For further information, visit Installing modules.

CONFIGURATION

  • Configure the image styles you wish to expose in Administration » Configuration » Web Services » JSON:API Image Styles (/admin/config/services/jsonapi/image_styles)

    • Select the image styles you wish to expose for JSON:API

    • Select none to expose all defined image styles (default behaviour)

MAINTAINERS

Current maintainers:

This project has been sponsored by: