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

 
 
Show feedback again

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

bug #30806: rsvg pretty rotten

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Wed 18 Aug 2010 09:59:38 AM UTC  
 
Category: ConversionPriority: 5 - Normal
Item Group: ErrorStatus: None
Privacy: PublicAssigned to: Sam Liddicott <samjam>
Originator Name: Open/Closed: Open
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

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
  • -unavailable- added by mdbenito (Updated the item)
  • -unavailable- added by samjam (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Sep 2012 08:12:38 AM UTCmdbenitoCategoryNone=>Conversion
      Item GroupNone=>Error
      Assigned toNone=>samjam
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup