Janek Warchoł <[email protected]> writes:

> 2013/12/6 Noeck <[email protected]>:
>>>> 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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to