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
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!
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).
I would like to create a shockwave file that can display a website with an internal webbrowser or something similar. The final target to display the website in a pdf file, but I think the only way to do this, is the swf trick.
I tried to find resources for this on the web, but found nothing.
UPDATE:
I am looking for a way to display a website in a downloadable pdf file. The website is only one html file fuelled by jquery and css.
Download SWF template for your website and edit it in macro media flash editor.
I would use a PHP script to create a PDF file (my choice for this kind of stuff is TcPDF, which has many example/how to scripts ready to use), and I'd put a captured image of my website in it; there are several websites offering this service for free, just google it, for example webthumbnail.org.
Disclaimer: I'm not linked to TcPDF nor Webthumbnail.org in any way, they are just the first examples that came into my mind.
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