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

 
 

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

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

Add a New Comment Rich Markup
   

Mon 07 Nov 2022 09:41:55 AM UTC, comment #1: 

Hi.
Apologies for answering so incredibly late but dealing with external converters had little priority in comparison other issues.
Yesterday I made some fixes to the external converters usage (svn revsion 1826):
 http://svn.savannah.nongnu.org/viewvc/fbi-improved?view=revision&revision=1826

wrt what you wrote: FIM opens the PNG file created by inkscape via the command you listed (using the full-length switches though).

It might be the defects you've seen were because of concurrency between unfinished converter program and FIM continuing running.

Now FIM should give up to 15 seconds for the conversion, and only then continue. So FIM will likely avoid oepning a "partially created" file.

I hope you're still into FIM to appreciate the change ;-)

dezperado <dezperado>
Group administrator
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:
   
   
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
  • -email is unavailable- added by dezperado (Posted a comment)
  • -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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-11-07 dezperado StatusNone Ready For Test
    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.13-461b.
    Corresponding source code