Description of the need
At present, if you have uploaded SVG files to use on site, these show as though the file can't be found:
As a content author I want to be able to preview SVG images when I go to add an image to a content item through the "Select from Image Library dialog" So that I can check I'm inserting the right image
As a content author I want to see light coloured SVG images against a dark background and vice versa So that I can easily see what the SVG will look like
Proposed solution
When viewing the Select from Image Library dialog, SVG files are rendered against a light or dark background depending on the dominant colour, or user could have an option to switch background colour.
Alternatives that have been considered
If you go to manage files, you can click on view and see them displayed as an entity.
Is there a Drupal or Backdrop contributed module that accomplishes this? Not aware of any. The SVG Image Support module adds support for fields but doesn't have any impact here.
Additional information
Add any other information or screenshots that would help.
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes support for previewing SVG files when you are selecting an image from the image library to add to content. The background is adjustable so you can preview easily even if the image is the same colour as the page background.
Recent comments
No, that won't work. My dev server's address looks like: localhost:1000/xyz/folder1/folder2 My prod server address looks like: example.com Just using a relative...
Need PHP Filter in Backdrop
No prob. I use a NAS for development, and my sites are all in different directories, so it's like <nasip>/volume1/web/site-name.
Need PHP Filter in Backdrop
Fair enough. I'm used to having all my dev sites at the root so forgot how that sometimes works.
Need PHP Filter in Backdrop