lilypond-user
[Top][All Lists]
Advanced

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

Re: Images from snippets


From: David Kastrup
Subject: Re: Images from snippets
Date: Fri, 06 Dec 2013 11:18:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> 2013/12/6 Noeck <address@hidden>:
>>>> 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
>>>
>>> This seems somewhat inconvenient to me (too manual).  But i think we
>>> should rather speak about implementation details when we *have* a HTML
>>> frontend....
>>
>> Just to make sure, I am understood correctly: The manual thing is the
>> numbers, the script should take them automatically from the file and use
>> them in convert.
>
> Yes, i understand.  But i would prefer not to ask snippet authors to
> add such numbers to the files if possible.  One of my highest
> priorities is to keep things simple - so simple that noone would ever
> think "i'd add this snippet, but i don't have time to fill all
> description fields". :-)

Well, one does not need numbers.  One can just use a tag- or tweak- like
command on elements that should be included in the icon, and then the
bounding rectangle of all those is taken.  Possibly always including the
staff lines on the given stretch.

-- 
David Kastrup



reply via email to

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