question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for SVG images

See original GitHub issue

I’ve added SVG as an image type but the manager will not let me upload it. Is there a way around this?

            // add supported image type
            Piranha.App.MediaTypes.Images.Add(".svg", "image/svg+xml");

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
tidyuicommented, Oct 27, 2019

This will be release in 7.1 you can now add a media type that doesn’t support processing with:

Piranha.App.MediaTypes.Images.Add(".svg", "image/svg+xml", false);

All calls for getting a resized version of the image will return the original URL.

0reactions
kttarycommented, Jan 29, 2021

Got it work now. Problem with my browser i think

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG (basic support) | Can I use... Support tables for HTML5 ...
SVG (basic support). - CR. Method of displaying basic Vector Graphics features using the embed or object elements. Refers to the SVG 1.1...
Read more >
SVG as an Image - SVG: Scalable Vector Graphics | MDN
SVG images can be used as an image format, in a number of contexts. Browsers support SVG images in:
Read more >
SVG files: How to create, edit and open them
Only modern browsers can support SVG images. You may find it a challenge to use SVG files with Internet Explorer 8 and other...
Read more >
SVG Support – WordPress plugin
Safely upload SVG files to your media library and use them like any other image. Now with optional sanitization! But SVG Support has...
Read more >
Enable SVG Support in WordPress
Enabling SVG support in WordPress can help protect your site from unsecure files & other threats. Check out the WP Engine how-to guide...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found