bugGNU TeXmacs - Bugs: bug #30806, rsvg pretty rotten

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30806: rsvg pretty rotten

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Wed 18 Aug 2010 09:59:38 AM UTC  
 
Category:  Conversion Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  Sam Liddicott <samjam>
Originator Name:  Open/Closed:  Closed
Release:  r 10013 Release:  None
Fixed Release:  None Fixed Release: 
Keywords: 

Fri 08 Apr 2016 06:27:17 AM UTC, comment #2:

I think we can close this bug. We now try to preserve the vectorial character of svg when printing with the help of inkscape (if available). On-screen svg is handled directly by Qt (if svg was enabled at compile-time). Otherwise rsv-convert is asked a 300dpi output.

Philippe Joyez <pjoyez>
Project Member
Thu 28 Nov 2013 11:18:47 AM UTC, comment #1:

External converters are probably insufficient for vector graphics, since it is unclear how to specify the width and height. Some new mechanism would be needed here, if we want optimal resolution.

Joris van der Hoeven <vdhoeven>
Project Administrator
Wed 18 Aug 2010 09:59:38 AM UTC, original submission:

The inkscape converter definition in ./TeXmacs/progs/convert/images/init-images.scm:

(converter svg-file postscript-file
(:require (url-exists-in-path? "inkscape"))
(:shell "inkscape" "-z" "-f" from "-P" to))

is pretty fine; in outputting postscript it is resolution neutral.

The rsvg definition (which is preferred by TeXmacs and used during postscript definition) is rotten:

(converter svg-file png-file
(:require (url-exists-in-path? "rsvg"))
(:shell "rsvg" "-f png" from to))

It allows rsvg to choose the generated output size regardless of the TeXmacs global dpi or graphics size.

And I find the resolution to be pretty rotten. I think that --dpi-x and --dpi-y should be specified to the global dpi (for the benefit of any px units in the svg) and also -w and -h should be specified as given in the <postscript|...> node.

I'm still trying to locate the implementation of the <postscript tag so I can hazard a patch. Best candidate so far is image->postscript in ./TeXmacs/progs/kernel/texmacs/tm-convert.scm but I'm not convinced.

Sam Liddicott <samjam>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by mdbenito (Updated the item)
  • -email is unavailable- added by samjam (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-08 pjoyez StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
        Release => r 10013
    2013-11-28 vdhoeven StatusNone => Confirmed
    2012-09-13 mdbenito CategoryNone => Conversion
        Item GroupNone => Error
        Assigned toNone => samjam

    Back to the top


    Powered by Savane 3.3