Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I am working in Umbraco 7.2.2 website.
I have enable svg image uploading through media setting in UmbracoSetting.config file.
But when I try to select that image from content page , I am not able to see which image selected?
Can anyone help?
Thanks in advance.
Regards,
Urvish Mandaliya
Hi
I am facing same issue in Umbraco 7.2.4 ,
Kindly let me know if you find any solution.
Regards
Mehul.
Umbraco can't show thumb of svg image.
Thanks
Hi Alex,
Thanks for the reply.
Is there any work around to display that image?
You need to write your custom property editor for svg
http://umbraco.github.io/Belle/#/api
ok thanks Alex.
I will try with this.
Another possible problem, that IIS does not understand what a .svg file is and will not serve any files that have been added by a designer or front end developer.
Try to add to web.config
<staticContent> <remove fileExtension=".air" /> <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" /> <remove fileExtension=".svg" /> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <remove fileExtension=".ttf" /> <mimeMap fileExtension=".ttf" mimeType="font/ttf" /> </staticContent>
Yup, you'll also need to add the mime type stuff in the web.config otherwise there is a chance that the server is getting confused.
I usually get some inspiration about what to add to staticContent from this config from the html5 boilerplate team https://github.com/darktable/html5-boilerplate-server-configs/blob/master/web.config
/Jan
Thanks Alex and Jan for the reply.
I have checked in web.config file.
Mime type for svg is already added in that.
<remove fileExtension=".svg" /> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
Hi Urvish
You might also want to add this if for some reason compressed svg's are being uploaded.
<remove fileExtension=".svgz" /> <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
Thanks for the reply Jan.
Added that but result remains same :(
So you have to write your own property editor.
If you want thumbnail in Media section for SVG file, just add below code in umbracoSettings.config > Content tag:
<imaging>
<!-- what file extension that should cause umbraco to create thumbnails -->
<imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif,svg</imageFileTypes>
</imaging>
Umbraco 7.5 just released and SVG image preview is out of the box now - http://issues.umbraco.org/issue/U4-8580#
Thanks,
Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
SVG image not previewing in Content page
Hi,
I am working in Umbraco 7.2.2 website.
I have enable svg image uploading through media setting in UmbracoSetting.config file.
But when I try to select that image from content page , I am not able to see which image selected?
Can anyone help?
Thanks in advance.
Regards,
Urvish Mandaliya
Hi
I am facing same issue in Umbraco 7.2.4 ,
Kindly let me know if you find any solution.
Regards
Mehul.
Hi,
Umbraco can't show thumb of svg image.
Thanks
Hi Alex,
Thanks for the reply.
Is there any work around to display that image?
Regards,
Urvish Mandaliya
You need to write your custom property editor for svg
http://umbraco.github.io/Belle/#/api
ok thanks Alex.
I will try with this.
Regards,
Urvish Mandaliya
Another possible problem, that IIS does not understand what a .svg file is and will not serve any files that have been added by a designer or front end developer.
Try to add to web.config
Thanks
Yup, you'll also need to add the mime type stuff in the web.config otherwise there is a chance that the server is getting confused.
I usually get some inspiration about what to add to staticContent from this config from the html5 boilerplate team https://github.com/darktable/html5-boilerplate-server-configs/blob/master/web.config
/Jan
Thanks Alex and Jan for the reply.
I have checked in web.config file.
Mime type for svg is already added in that.
Regards,
Urvish Mandaliya
Hi Urvish
You might also want to add this if for some reason compressed svg's are being uploaded.
/Jan
Thanks for the reply Jan.
Added that but result remains same :(
Regards,
Urvish Mandaliya
So you have to write your own property editor.
Thanks
If you want thumbnail in Media section for SVG file, just add below code in umbracoSettings.config > Content tag:
<imaging>
<!-- what file extension that should cause umbraco to create thumbnails -->
<imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif,svg</imageFileTypes>
</imaging>
Hi,
Umbraco 7.5 just released and SVG image preview is out of the box now - http://issues.umbraco.org/issue/U4-8580#
Thanks,
Alex
is working on a reply...