GraphQL Srcset

GraphQL Srcset Plugin for Craft CMS

Adds the @srcset GraphQL directive for generating a comma-separated list of image transforms.


  • Set default widths for all srcset transforms.
  • Specify a ratio to generate all images using the same aspect ratio.


  • If you're having issues with the directive not simply returning the URL with no transforms, you must specify at least one argument in the directive. Consider adding the immediately argument.


Create a Github issue if you experience a bug with the GraphQL Srcset plugin.


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


  • Version 1.0.5
  • Last Update 10/14/2020
  • Active Installs 126
  • Compatibility Craft 3
  • License MIT
  • Categories Assets, Utilities, Development

Report an issue