Re: Embedding images into a score created with -dbackend=svg

2021-11-27 Thread Paolo Prete
On Sat, Nov 27, 2021 at 1:45 PM Valentin Petzel wrote: > Hello Paolo, > > I’m not saying that your approach is meaningless. Drawing paths as SVG and > then transforming them into a Lilypond path is a sensible workflow for > creating custom glyphs. But I’m just explaining why this would not work a

Re: Embedding images into a score created with -dbackend=svg

2021-11-27 Thread Valentin Petzel
Hello Paolo, I’m not saying that your approach is meaningless. Drawing paths as SVG and then transforming them into a Lilypond path is a sensible workflow for creating custom glyphs. But I’m just explaining why this would not work as a generic method for embedding SVG images into our score. And

Re: Embedding images into a score created with -dbackend=svg

2021-11-27 Thread Paolo Prete
On Sat, Nov 27, 2021 at 3:51 AM Valentin Petzel wrote: > Hello Paolo, > > The viewer needs to rasterize the svg, how else is it supposed to display > it? > Also it’s not you who is supposed to add the image tag, but the svg > backend. > > Hello Valentin, This is not what I meant. SVG embedded in

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Valentin Petzel
Hello Paolo, The viewer needs to rasterize the svg, how else is it supposed to display it? Also it’s not you who is supposed to add the image tag, but the svg backend. But then in your example you are basically doing thing you do not need to do. Embedding svgs would be interesting for custom gra

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Paolo Prete
On Fri, Nov 26, 2021 at 7:18 PM Valentin Petzel wrote: > Hello Paolo, > > I’m not exactly sure what you mean by „inline-svg”. The discussion you > linked > to is about manually converting svg paths into lilypond paths. While this > is > possible it surely would get very complicated with more adva

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Valentin Petzel
Hello Paolo, I’m not exactly sure what you mean by „inline-svg”. The discussion you linked to is about manually converting svg paths into lilypond paths. While this is possible it surely would get very complicated with more advanced svg. But it should be quite easy to use the -tag svg gives us

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Paolo Prete
Here's an alternative way to do it: https://groups.google.com/g/musicnotation/c/G3j-lmc2H1w/m/7N2I2ksP5IcJ Let's see if it works without too much effort... On Fri, Nov 26, 2021 at 5:27 PM Paolo Prete wrote: > > Hello Valentin, > > >> The proper solution would probably to add a function like \e

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Paolo Prete
Hello Valentin, > The proper solution would probably to add a function like \embed-image > which > makes use of the SVG tag. But that one only specifies jpeg, png > and > svg. This means that for any other format it is the choice of the viewing > software if they want to support it. this is wh

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Valentin Petzel
Hello Paolo, Hello Knute, \epsfile works by basically directly using the ps-code in the eps file. So it is expected that this does not work with the svg backend (generally the svg backend cannot simply embed arbitrary ps code). The proper solution would probably to add a function like \embed-im

Re: Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Knute Snortum
Would converting the ESP image to SVG be the easiest route? There are many places online that will do this for free. -- Knute Snortum On Fri, Nov 26, 2021 at 5:41 AM Paolo Prete wrote: > > Hello, > > AFAIK, there's no way to embed an eps image, using the \epsfile command, > into a score made

Embedding images into a score created with -dbackend=svg

2021-11-26 Thread Paolo Prete
Hello, AFAIK, there's no way to embed an eps image, using the \epsfile command, into a score made with SVG output (I would suggest to add this note into the doc, BTW). Is there an alternative for this? Maybe in some way I can inline SVG? Many thanks for your help! P