Developer forum

Forum » Dynamicweb 10 » svg not loaded anymore

svg not loaded anymore

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi, 

Can be seen on https://mountainbikemuseum.nl/

I think this is since 10.4.1 but I'm not 100% sure, might be due to Swift changes as well?. I now get an error message, is svg something I need to configure seperatly?:

An exception occurred while processing the file: /Files/Images/retro-bar-2.svg
SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders:
 - Webp : WebpDecoder
 - TGA : TgaDecoder
 - TIFF : TiffDecoder
 - PNG : PngDecoder
 - PBM : PbmDecoder
 - GIF : GifDecoder
 - JPEG : JpegDecoder
 - BMP : BmpDecoder

   at SixLabors.ImageSharp.Image.Load[TPixel](Configuration configuration, Stream stream, IImageFormat& format)
   at SixLabors.ImageSharp.Image.Load[TPixel](Configuration configuration, Stream stream)
   at SixLabors.ImageSharp.Image.Load[TPixel](Stream stream)
   at Dynamicweb.Imaging.Providers.ImageSharpProviders.ImageSharpImageConverterProvider.ProcessImage(Stream input, Stream output, ConvertParameters convertParameters)
   at Dynamicweb.Imaging.Providers.ImageSharpProviders.ImageSharpImageConverterProvider.Convert(ConvertParameters convertParameters)
   at Dynamicweb.Imaging.ImageHandling.ImageConverter.ConvertInternal(ConvertParameters convertParameters)

Replies

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Edit: I changed the images to webp and that works, but still curious to learn if svg is now not supported anymore :-)

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It is because some template code tried to use SVG together with GetImage - and SVGs are technically not images, but vectors. You do not provide information on how you selected the image. Show where you selected it in the backend and how it looks in the frontend please.

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

I have a couple of GridRows accross the site that use an svg as a background, they generate a call to GetImage.ashx as shown in the last screenshot here:

 

You must be logged in to post in the forum