This is somewhat similar to This Question. I have added a seperate class to support SVG.
[ContentType(GUID = "aeb5af39-64dc-49e0-a515-f186a51562b1")] [MediaDescriptor(ExtensionString = "svg")] public class VectorImageFile: ImageFile { [ImageDescriptor(Width = 180, Height = 240)] public override Blob Thumbnail240X180 { get { return base.BinaryData; } set { base.BinaryData = value; } } }
However, this returns the exact SVG file. It will not return a thumbnail which is scaled to 250*180. How to resolve this? Is this a known issue?
As far as I understood it, an SVG file by its very nature will always return the whole file, and it is scaled by the browser.
Thanks. That seems correct. We have done some CSS at the front end to make it scalable as we need.
This is somewhat similar to This Question.
I have added a seperate class to support SVG.
However, this returns the exact SVG file. It will not return a thumbnail which is scaled to 250*180. How to resolve this? Is this a known issue?