Issue #7833 open

Show raw, unrendered contents of text-based images (SVG, XPM, etc) (BB-8996)

Mel Collins
created an issue

Currently, when viewing an SVG file in a repository, the "source" view displays the rendered image, rather than the source code of the SVG. Hence there is currently no simple way to view the entire source code of SVG files within bitbucket (AFAICT) - only a hacky way via a diff view.

Eg: https://bitbucket.org/tharris/gd-svg/src/af2e386df375fc6cffcb95a1d78c5647e3c0b73c/examples/test_image.svg?at=default (not mine, just the first public one I found)

If someone wants to view the final rendered graphic, the "raw" button is available for that purpose, so the "source" tab should show the actual image source code.