bugFIM: Fbi IMproved - Bugs: bug #50615, Rendering of SVG does NOT respect...


bug #50615: Rendering of SVG does NOT respect viewPort and viewBox values

Submitted by:  Zythyr <zythyr>
Submitted on:  Wed 22 Mar 2017 09:32:18 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Wed 22 Mar 2017 09:32:18 PM UTC, original submission:  

When displaying SVG file using FIM, the SVG file is not displayed properly. The SVG's root width/height values and viewBox attributes are not respected. FIM automatically scales up the image to fit everything.

It is my understanding that FIM is the responsible for rendering the SVG. The SVG is first converted using Inkscape. However, I think the conversion is not occurring properly.

Attached screenshots shows the SVG file being rendered using FIM and it being rendered with the default image viewer of Ubuntu. Notice how even when using "--no-auto-scale", it still renders the SVG file improperly. If I manually convert the SVG file to PNG using Inkscape, the resulting PNG is rendered properly. I use the following command to convert the SVG to PNG: "inkscape -z circle-cut.svg -e circle-cut-inkscape-convert.png".

Is this a bug or am I doing something wrong?

Testing environment:
VirtualBox (on Windows 10) Version 5.1.14 r112924 (Qt5.6.2)
Ubuntu 16.04 LTS
FIM built from latest release fim-0.6-trunk.tar.gz (11-Mar-2017 11:21) https://download-mirror.savannah.gnu.org/releases/fbi-improved/

Zythyr <zythyr>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #40080:  circle-cut.svg added by zythyr (421B - image/svg+xml)
file #40076:  fim-render-png.png added by zythyr (231KiB - image/png)
file #40078:  fim-render-svg.png added by zythyr (197KiB - image/png)
file #40079:  fim-version.png added by zythyr (460KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zythyr (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-22 zythyr Attached File- => Added circle-cut.svg, #40080
        Attached File- => Added circle-cut-inkscape-convert.png, #40081
    2017-03-22 zythyr Attached File- => Added fim-render-png.png, #40076
        Attached File- => Added fim-render-svg-noautoscale.png, #40077
        Attached File- => Added fim-render-svg.png, #40078
        Attached File- => Added fim-version.png, #40079

    Back to the top

    Powered by Savane 3.9