lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Images from snippets


From: Noeck
Subject: Images from snippets
Date: Thu, 05 Dec 2013 22:28:23 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

Hi,

here is an idea for the snippets library:

For later use*, one could introduce a header entry to get a small image
showing the purpose of the snippet. There one could specify the
coordinates of a part of the example.
Naming suggestions:
snippet-image, snippet-crop, snippet-thumbnail, snippet-icon

Here is an example to show what I mean:
for snippets/notation-snippets/hairpin-with-text
this line could be added to the header:
snippet-icon = 85x85+95+107

Then these lines could produce the corresponding image:
        lilypond -fpng example.ly
        convert -crop 85x85+95+107 example.png example-icon.png

Of course, this could be automated. If the author provided the
coordinates of the interesting part of the examples file, the necessary
information would be in the library.
Potential pitfall: When the the example is changed, the numbers need
adjustment.

If commandline cropping is possible with svg (should be the case), it
might be an even better solution.

What do you think? (Especially Urs and Janek)

Cheers,
Joram



* I am thinking of an html page, showing all snippets. Being someone who
likes overview pages, this would make it easier to skim over lots of
snippets and estimate if one of them can be useful.

ascii-art illustration:

[     ] *snippet-title*
[image] snippet-description
[     ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]