Try our conversational search powered by Generative AI!

SVG Thumbnail is not generated


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?

Edited, Sep 12, 2018 12:58

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.

Sep 12, 2018 21:49

Thanks. That seems correct. We have done some CSS at the front end to make it scalable as we need.

Sep 13, 2018 5:09
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.