Azure Blob svg download - azure

There might be a simple answer to this but I have not found it.
I'm trying to get an svg file stored in an Azure blob store to download to the browser.
The corresponding png downloads to the downloads area of the browser.
If I do the same for an svg it opens the file by default in a new tab.
The following for the png works as wished for.
Png
The following for the svg opens a new tab and displays the svg rather than downloading to the
downloads of the browser.
Svg
Is there a way of overriding the browser behaviour for svg files or is there a simple jquery
type solution for this?

Yes there is.
You need to change content-disposition of svg file in blob storage to attachment
If this does not work you can also change Content-type to application/octet-stream
Probably right now you have content type image/svg+xml

Related

Ways to extract font / svg file from an old flash based website?

I'm trying to see if it's possible to extract font & svg data from an archived flash website
Is this possible?
Note: I am using this extension on my chrome to run flash website
Screenshot of flash website
Solution:
Download the .sfw that contains font or vector file. If the fonts are not embedded in SWF, it will not work.
Open the .swf with Action Script Viewer to extract .ttf

Insert SVG images using Media Manager

I am using Joomla 3.9.12 for my client's website redesign and I am wanting to use SVG icons for some of the menu items. I have placed the SVG images in a specific image directory, but I cannot select them using the media manager popup that is launched by the "Link Image" option. I have updated the Media Manager configuration settings with the following:
Legal Extensions (File Types): bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,svg,swf,txt,xcf,xls,BMP,CSV,DOC,GIF,ICO,JPG,JPEG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,SVG,SWF,TXT,XCF,XLS
Legal Image Extensions (File Types): bmp,gif,jpg,png,svg
Legal MIME Types: image/jpeg,image/gif,image/png,image/bmp,image/svg,application/x-shockwave-flash,application/msword,application/excel,application/pdf,application/powerpoint,text/plain,application/x-zip
I have also added AddType image/svg+xml .svg .svgz and AddEncoding gzip svgz to my htaccess file.
None of these changes have allowed the SVG images to be selected using the Media Manager. Why are we in 2019 and still having no possible way to add SVG images to Joomla? Is it still that big of a security concern?
If you are using JCE as your text editor, try going to
Components > JCE > Editor Profiles > Your Profile > Plugin Parameters > File Browser > Permitted File Extensions. Scroll to the images block and check if the SVG format is there. If it isn't, add SVG, save and try again.
If you still don't have any success, FTP to your images directory and double-check that the SVG file was successfully uploaded.
If you are using an editor other than JCE, look for a similar setting, or let us know what you are using.
Good luck!

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).

png file not displaying

i have a few png files in my asp.net 3.5 web app. the images displaying correctly in dev; however, when i load the app on the server, the png files do not display. i'm using w2k8 and iis. when i server another image file from same directory (jpg), it works. is there something i am missing with png files?
This sounds like a permissions problem. Have you checked the permissions on one of the PNG files to be certain that they can be read by EVERYONE?
If you can access the server directly, can you see the images if you use a browser on the server and visit the local site? http://localhost/
Can you try view the PNG directly by URL from your browser? By that I mean entering the full URL to the PNG itself rather than the page that is showing the PNG. For example http://sstatic.net/so/img/logo.png
Very late but maybe not a wrong solution:
If you rename a .jpg to .png it won't show in Microsoft's browsers.
If you save the file again in Paint for example, it will change the mime-type or file-headers thus it will load after that change.
You can test this pretty easily:
Rename a .jpg file to .png
Load the page : The image is broken
Save the file as .png now
Load the page : The image will load now

Resources