Orchard CMS: How to preview svg image in MediaLibrary? - orchardcms

Is the way to preview svg image in Media Library?
Is there way to extend Orchard 1.8.2 for that?

Related

Convert html/css/javascript code in SVG for Adobe XD

a client gave me a design system for the restyling of their app, but it's only a website with all the design system and no sag to download. In the website the is only the HTML/CSS/JS code.
Is there a way to have components like buttons in SVG to use Adobe XD, starting from HTML/CSS? I attached an image of what I have
Thanks!
enter image description here

PDF Viewer vs Web Viewer andriod

Which one is Best for my Android Tutorial App (pdf viewer or web viewer) . Its a Programming tutorial app so which component i use for my app? or another suggestion to develop tutorial app.
I use pdf viewer instead of webview because pdf show all image or content offline but webview is not showing the images offline. One more Problem occur to creating a block for code between pdf.
If you have prepared your content in word/doc/pdf then the pdf viewer is best.
If you have prepared your content in HTML like web pages or website, it's best to go with the webview.

vector graphics in MS VSTS Wiki

Using the latest online version from VSTS.
Is it somehow possible to use vector graphics in the vsts wiki?
I know I can't upload a .svg as attachment (only png, jpeg and gif) but is there any other approach?
In the end, it is just static file serving. Using markdown, I can use any url to a public .svg and the image gets rendered correctly using the VSTS wiki. But I can't upload the graphic on my own. Also it has to be uploaded inside VSTS, a public file hosting location is not allowed.
My Idea was to upload the vector graphic inside the code section and inside the wiki to reference to the corresponding .svg. But I cannot or simply don't know how to get the full url to the .svg.
Any hints for that?
You can use the markdown for image syntax (![Text](URL)) to show vector graphics on wiki page (but the xml format hass not been supported yet).
While to get the url for a local .svg file, you need to hosted .svg file to a place with http protocol supported. But it seems there has no free site to hosted .svg files. And you can also refer the post free and convenient svg hosting.

Does Kml support a link to video files?

I am creating a KMZ file containing one KML file and other resource folder which contains a video and an image.
I know kml supports html inside description tag. So I am trying to show images and videos through that html code.
Showing an Image is fine. It is showing perfectly, but I am really interested in playing video files when I click on marker
The tool I am using to plot kmz file is here.
KML supports HTML in the description element of the placemark which is displayed in a popup. The HTML can contain an iframe element with URL to a video that can be played using the Adobe Flash player.
In Google Earth release 4.2 and higher, video is supported.
See Adobe Flash in Google Earth and this KML example.
Note that embedded video via HTML EMBED tag was supported in Google Earth but no longer supported as of Google Earth 7.x. (See Example).

Xamarin.Forms and Snap.svg

I will try to render some svg's in xamarin forms.
But the existing svg's are written in snap.svg.
Give it a nice why to render such svg's in xamarin forms?
Thank you.
Snap is used for animating svgs in web. You can't use the snap animations of svg in xamarin UI, because they are javascript animations. If you need just the svg, without the animation, you can export the inner svg (take a look here) and then use TwinTechs.SvgImage library for rendering cross-platform svgs in your xamarin.forms application.
EDIT 1:
You can load the svg into a WebView. I've created a sample project, which you can find here.
I've used XLabs's HybridWebView control. It allows to load html into web view. The rest is straightforward. You need to add HTML folder to iOS and Android projects (root project directory and Assets directory respectively). For iOS you need to copy HTML directory manually as described in HybridWebView doc
HybridWebViewRenderer.CopyBundleDirectory("HTML");
Then in your xaml page you declare the web view
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
x:Class="SvgSample.Views.SvgPage"
BackgroundColor="White">
<controls:HybridWebView
x:Name="webView"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
</ContentPage>
And in xaml.cs file you need to load HTML into the web view in OnAppearing method (this is important, otherwise it will not work, again check out HybridWebView doc)
protected override void OnAppearing()
{
base.OnAppearing();
webView.LoadFromContent("HTML/guage.html");
}
I've tested for iOS and Android and it worked.

Resources