[cairo] redesigning the arguments for svg2png
cworth at cworth.org
Thu Aug 4 10:58:54 PDT 2005
I'm sorry I haven't responded to this before now.
On Fri, 08 Jul 2005 23:27:20 -0400, Jason Dorje Short wrote:
> > Thus I suggest:
> > --width=$WIDTH (-w)
> > --height=$HEIGHT (-h)
> > --xscale=$X_SCALE (-x)
> > --yscale=$Y_SCALE (-y)
> > --flipx (-X maybe?)
> > --flipy (-Y maybe?)
> > --scale=$SCALE (-s)
> > --dpi=$DPI (-d)
> > --pad 
> > --stretch
Those all look really great to me.
> Here is a complete patch that implements this (except --dpi which isn't
> possible). I also updated the manpage.
Why don't we just set you up with commit access and then you can own
the command-line interface for this program. You seems to have done a
better job of interface design than I have.
And then you could also go commit your DPI fixes for libsvg-cairo and
add the missing --dpi option.
> Another thing I changed is that svg2png no longer defaults to using
> stdin and stdout; you have to tell it explicitly. This means if you
> just run "svg2png" you'll get the more reasonable behavior of a usage
That also sounds good.
PS. In the last couple of days I committed some code to librsvg which
improves its new support for rendering with cairo and adds an
rsvg-cairo program which is quite similar to svg2png. That work may
end up obviating libsvg-cairo, but it's not quite ready to do that
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050804/4e89f1b6/attachment.pgp
More information about the cairo