Last active
August 26, 2015 08:42
-
-
Save Wesley-Lomax/6292754128efc1b0633e to your computer and use it in GitHub Desktop.
Media Type for SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<mediaLibrary> | |
<mediaTypes> | |
<mediaType name="SVG image" extensions="svg"> | |
<mimeType>image/svg+xml</mimeType> | |
<forceDownload>false</forceDownload> | |
<sharedTemplate>system/media/unversioned/image</sharedTemplate> | |
<versionedTemplate>system/media/versioned/image</versionedTemplate> | |
<mediaValidator type="Sitecore.Resources.Media.ImageValidator"/> | |
<thumbnails> | |
<generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel"> | |
<extension>png</extension> | |
</generator> | |
<width>150</width> | |
<height>150</height> | |
<backgroundColor>#FFFFFF</backgroundColor> | |
</thumbnails> | |
</mediaType> | |
</mediaTypes> | |
</mediaLibrary> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment