Support SVG images in image widget
It would be nice if we can support SVG images.
There seems to be a problem with the mime-type or something. The backend is delivering the contents properly. Just the browser don't knows how to handle the data...
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
- Show closed items
Link issues together to show that they're related or that one is blocking others.
Learn more.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Steffen Vogel changed milestone to %4
changed milestone to %4
- Markus Grigull added VILLASweb
510 VILLASweb1715 labelsadded VILLASweb
510 VILLASweb1715 labels - Contributor
It would be nice if we can support SVG images.
We definitely want to support SVG images.
- Author Owner
If I fetch the file via Curl, it gives me a
Content-Type: application/octet-stream
which most likely the reason why the SVG is not shown properly:$ curl -v http://localhost:8088/public/599211edb623e200119aa698/upload_a6799c6018c85106af7e214bf33f30d9 * Trying ::1... * Connected to localhost (::1) port 8088 (#0) > GET /public/599211edb623e200119aa698/upload_a6799c6018c85106af7e214bf33f30d9 HTTP/1.1 > Host: localhost:8088 > User-Agent: curl/7.49.1 > Accept: */* > < HTTP/1.1 200 OK < Server: nginx/1.12.1 < Date: Tue, 19 Sep 2017 12:25:07 GMT < Content-Type: application/octet-stream < Content-Length: 24505 < Connection: keep-alive < X-Powered-By: Express < Access-Control-Allow-Origin: * < Accept-Ranges: bytes < Cache-Control: public, max-age=0 < Last-Modified: Tue, 19 Sep 2017 12:23:57 GMT < ETag: W/"5fb9-15e9a184cd9" < <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="281px" height="55px" viewBox="0 0 281 55" enable-background="new 0 0 281 55" xml:space="preserve"> <rect x="51.857" y="-0.013" width="0.683" height="55"/> <g> <path d="M65.333,12.664c-0.679,0.346-0.839,0.626-0.839,1.478l-0.014,3.531v0.093c0,1.85,0.174,2.411,0.853,2.917 c0.412,0.306,1.025,0.466,1.757,0.466c1.239,0,2.038-0.52,2.239-1.478c0.079-0.373,0.119-0.827,0.119-1.36v-0.186l-0.012-3.116 v-0.093c0-1.292-0.228-1.799-1.053-2.238h2.904c-0.893,0.519-1.106,0.985-1.146,2.49l-0.081,3.703 c-0.053,2.037-1.079,2.904-3.437,2.904c-2.677,0-4.115-0.958-4.115-2.744v-0.172l-0.067-4.702c-0.013-0.92-0.12-1.173-0.639-1.492 H65.333z"/>
- Steffen Vogel closed via commit 14084468
closed via commit 14084468
Please register or sign in to reply