torchbox / wagtail-grapple

A Wagtail app that makes building GraphQL endpoints a breeze!
https://wagtail-grapple.readthedocs.io/en/latest/
Other
151 stars 57 forks source link

Add preserveSvg argument to ImageObjectType.srcSet #369

Closed mgax closed 9 months ago

mgax commented 9 months ago

The preserveSvg argument, introduced in https://github.com/torchbox/wagtail-grapple/commit/802428fd0e0e56be484a1f279917739a83cc435e on the rendition field, would also be super useful on the srcSet field, to avoid such errors when requesting srcSet(sizes: [360, 1024], format: "webp") on an SVG image:

'SvgImage' object has no attribute 'save_as_webp'

Ref: #359