Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

SVG Thumbnail is not generated

Vote:
 

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?

#196817
Edited, Sep 12, 2018 12:58
Vote:
 

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.

#196824
Sep 12, 2018 21:49
Vote:
 

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

#196840
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.