Skip to main content
added 5 characters in body
Source Link
Marko Milic
  • 8.9k
  • 3
  • 24
  • 60

Using following line of code, the application on which I am working is creating resized image url.

string responsiveImageUrl = SiteConfiguration.MediaHelper.GetResponsiveImageUrl(Url, aspect, widthFactor, containerSize);

eg: mysitename/en/media/agriculture_tcm1010-123038_w320_h198_n.svgmysitename/en/media/agriculture_tcm1010-123038_w320_h198_n.svg

But this image is not available, if I see remove the "_w320_h198_n"_w320_h198_n, the image url which is "mysitename/en/media/agriculture_tcm1010-123038.svg"mysitename/en/media/agriculture_tcm1010-123038.svg displays an image. And this issue is only with .svg.svg type. Is it not possible to resize an svg image or the issue is specific to SDL Tridion only?

What exactly is happening here?

Using following line of code, the application on which I am working is creating resized image url.

string responsiveImageUrl = SiteConfiguration.MediaHelper.GetResponsiveImageUrl(Url, aspect, widthFactor, containerSize);

eg: mysitename/en/media/agriculture_tcm1010-123038_w320_h198_n.svg

But this image is not available, if I see remove the "_w320_h198_n", the image url which is "mysitename/en/media/agriculture_tcm1010-123038.svg" displays an image. And this issue is only with .svg type. Is it not possible to resize an svg image or the issue is specific to SDL Tridion only?

What exactly is happening here

Using following line of code, the application on which I am working is creating resized image url.

string responsiveImageUrl = SiteConfiguration.MediaHelper.GetResponsiveImageUrl(Url, aspect, widthFactor, containerSize);

eg: mysitename/en/media/agriculture_tcm1010-123038_w320_h198_n.svg

But this image is not available, if I see remove the _w320_h198_n, the image url which is mysitename/en/media/agriculture_tcm1010-123038.svg displays an image. And this issue is only with .svg type. Is it not possible to resize an svg image or the issue is specific to SDL Tridion only?

What exactly is happening here?

edited tags
Link
Rick Pannekoek
  • 21.4k
  • 1
  • 18
  • 30
Source Link

Responsive SVG image path not available

Using following line of code, the application on which I am working is creating resized image url.

string responsiveImageUrl = SiteConfiguration.MediaHelper.GetResponsiveImageUrl(Url, aspect, widthFactor, containerSize);

eg: mysitename/en/media/agriculture_tcm1010-123038_w320_h198_n.svg

But this image is not available, if I see remove the "_w320_h198_n", the image url which is "mysitename/en/media/agriculture_tcm1010-123038.svg" displays an image. And this issue is only with .svg type. Is it not possible to resize an svg image or the issue is specific to SDL Tridion only?

What exactly is happening here