gatsby-transformer-cloudinary icon indicating copy to clipboard operation
gatsby-transformer-cloudinary copied to clipboard

Support for SVG

Open davidpanzarella opened this issue 3 years ago • 2 comments

Is there any reason why SVGs don't get uploaded if they're in the path to upload? Cloudinary does a pretty good job optimizing them vs compressing them locally, which is why I prefer to use them from Cloudinary. However, they never get uploaded with this plugin. Is this something we can change in the config to define which asset types we'd like uploaded?

davidpanzarella avatar Oct 01 '21 15:10 davidpanzarella

@olavea and I are tasked with getting this plugin up-to-date 🥳

We plan to solve this issue by adding a plugin option for allowed media types, and using the current types (['image/png', 'image/jpeg', 'image/gif']) as default. In that way you could override and add SVG without us breaking it for someone else.

How does that sound @davidpanzarella?

raae avatar May 24 '22 09:05 raae

✋ 😸 🏴‍☠️

olavea avatar Jun 13 '22 04:06 olavea