Edgewall Software

Ticket #5139 (new defect)

Opened 21 months ago

Last modified 4 months ago

SVG does not display correctly as an Image

Reported by: bytter@… Owned by: jonas
Priority: normal Milestone: not applicable
Component: general Version: 0.10.3.1
Severity: normal Keywords: mimeview IContentConverter
Cc:

Description

When using an SVG file in an Image tag, it is not correctly displayed (at least not under Firefox 1.5 or IE 7). SVG files should probably be outputed as an <object> tag (standards compliant) or as an <embed> tag.

Attachments

Change History

  Changed 20 months ago by anonymous

Having an option to automatically rasterize attached SVG images (or not) would be nice too. Although always delivering SVG files would be the perfect scenario, I see it adequate only when using trac on an intranet context. On the Web, there are still too many browsers that can't handle SVG properly.

follow-up: ↓ 3   Changed 20 months ago by cboos

  • keywords mimeview IContentConverter added
  • milestone set to not applicable

One could write a IContentConverter plugin for that, though that API is not yet finalized. So I'm keeping the ticket opened in order to keep it as a requirement when finalizing the API.

Related to #3332.

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 20 months ago by eblot

Replying to cboos:

One could write a IContentConverter plugin for that, though that API is not yet finalized. So I'm keeping the ticket opened in order to keep it as a requirement when finalizing the API. Related to #3332.

The rasterizing feature should be implemented in a plugin, you're right. It's a complex task which requires external, heavy tool(s), that is other dependencies. Plus it's usually quite difficult to handle some graphic items such as characters (font issues).
I had some very bad times with the th:wiki:GraphvizPlugin (due to the rasterizer, not to the plugin) and I've never been able to produce the expected results, not mentioning the dependency nightmare of librsvg.

in reply to: ↑ 3   Changed 20 months ago by cboos

Replying to eblot:

not mentioning the dependency nightmare of librsvg.

[OT] I had better luck taking the cairo route for making dot produce antialiased png, though having to compile half of Gnome to reach that point could be described as a nightmare as well ;-) (however, following the Linux From Scratch recipes, that was manageable, only long...)

  Changed 4 months ago by anonymous

why not use <object> for all images, SVG included?

Add/Change #5139 (SVG does not display correctly as an Image)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.