SVG support

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 yıl önce
Is there any setting or any way to upload .SVG as a category image?
nopCommerce(v.3.9)

Thanks in advance.
6 yıl önce
I don't believe so - nop uses a library called ImageResizer to create thumbnails of the original picture, and it looks like ImageResizer doesn't "rasterize."  

One idea is, name your svg files with the associated category id as a suffix, and simply update the view to reflect the correct images.

Something similar to:

<img src="@Url.Content("~/MyCategorySvgs/cat_"+ Model.Id + ".svg")" />
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.