Bug 325083

Summary: Okular displays SVG files as plain text
Product: [Applications] okular Reporter: m101010a
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: cfeck, yurchor
Priority: NOR    
Version: 0.17.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description m101010a 2013-09-19 10:31:58 UTC
When I open an SVG file with "okular file.svg" it shows me the raw XML contained in the file rather than interpreting it as an SVG image.

Reproducible: Always

Steps to Reproduce:
0. Have an svg file
1. Open the file in okular by typing "okular file.svg"
Actual Results:  
Okular displays paginated XML text.

Expected Results:  
Okular displays pretty pictures.
Comment 1 Yuri Chornoivan 2013-09-19 10:58:35 UTC
Okular is not an SVG viewer:

http://okular.kde.org/formats.php

Please use KDE picture viewer (Gwenview) to watch SVG.
Comment 2 Christoph Feck 2013-10-01 21:09:24 UTC
Okular does not render SVG right now, but using an image viewer does not sound like a suitable replacement.

When printing using Gwenview (and possibly other image viewers), it will first convert the SVG to raster data, which degrades the quality of the print-out.

I suggest to re-evaluate this report, and possibly mark it as a wish.

EDIT: I just checked, Gwenview does not even allow SVG to be printed.
Comment 3 Christoph Feck 2013-10-01 21:19:50 UTC
After checking on IRC with okular developers, if SVG support is needed in Okular in the future, please report it separately as a wish for "okular/New backend wishes", stating use case.