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

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

 

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

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)
  •  

    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.

     

    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.13-758e.
    Corresponding source code