[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quality images for Wikipedia - several questions
From: |
Patrick McCarty |
Subject: |
Re: Quality images for Wikipedia - several questions |
Date: |
Fri, 5 Feb 2010 01:33:27 -0800 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi Steve,
You have you "reply to all" to keep messages on the list.
On 2010-02-05, Steve Taylor wrote:
> On 5 February 2010 17:49, Patrick McCarty <address@hidden> wrote:
>
> > lilypond -dbackend=svg myfile.ly
>
> Yes, that works, apart from the cropping. I should try uploading one of
> these files to wikimedia and testing it with various browsers and operating
> systems. So all I'd need is a script that crops an SVG image down to its
> actual content.
Hopefully you'll find that it works everywhere. :-)
My goal was to make sure LilyPond produces SVG files that comply with
SVG 1.1 and SVG Tiny 1.2, and I'm pretty sure I covered the
inconsistencies between the two recommendations.
> > What suggested solutions are you referring to?
> >
> I've been trying a script called 'ps2svg' although I haven't yet
> successfully installed 'skencil' due to dependencies. Using lilypond -f ps
> and then eps2eps -dNOCACHE seems to produce a cropped postscript image.
> Another script I found seemed to use PNG in an intermediate step, which
> seems counter to the vector graphics format to me.
Oh, I see, to try converting LilyPond's PostScript output to SVG. I
understand now.
I've never tried this approach, but if it works okay, this would
probably be the easiest option for now.
> > Not yet. This is on my TODO list. Specifically, it requires
> > implementing an output-preview-framework:
> >
> > http://code.google.com/p/lilypond/issues/detail?id=968
>
> Great! I look forward to seeing this in action. I hope it's not too
> complicated to implement?
It shouldn't be too difficult. I tried implementing it over the
summer, but gave up due to some strange document-dimension problems I
was encountering.
But those issues might have been resolved in the meantime.
> > You could use Inkscape to crop the SVG files though. I can't provide
> > precise instructions at the moment since I haven't done this in a
> > while.
> >
> Due to the potentially large number of such files I would like to create,
> any additional manual step is going to slow the process down. But if anyone
> could point me towards a script or (linux) command to do this, that would be
> great.
I can't think of any tool that would be useful in this case and still produce
nice-looking SVG output. "convert" from ImageMagick doesn't work very
well with SVG.
I'll move the output-preview-framework up on my TODO list, since it
would be incredibly useful.
Thanks,
Patrick