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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

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
  • -unavailable- added by zythyr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Mar 2017 09:32:32 PM UTCzythyrAttached File-=>Added circle-cut.svg, #40080
      Attached File-=>Added circle-cut-inkscape-convert.png, #40081
    Wed 22 Mar 2017 09:32:18 PM UTCzythyrAttached 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.1-cleanup1