Что требуется от плагина:
При его вызове вылазит стандартный диалог выбора файла с фильтром jpg/png/gif/.., путь передаётся flac'у в самом простом варианте с параметром --picture="3||описание||путь". Вместо описания можно подставлять имя графического файла без расширения. После добавления первого кавера, можно показать окошко для добавления следующих ) С выбором type через селектбокс.. Определение mime-типа и разрешения кавера можно доверить флаку, опустив параметры. Выдержка их хелпа:
--picture=SPECIFICATION Import a picture and store it in a PICTURE block.
More than one --picture command can be specified.
The SPECIFICATION can either be a simple filename
for the picture file, or a complete specification
whose parts are separated by | characters. Some
parts may be left empty to invoke default values.
Using a filename is shorthand for "||||FILE".
The SPECIFICATION format is:
[TYPE]|[MIME-TYPE]|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE
TYPE is optional; it is a number from one of:
0: Other
1: 32x32 pixels 'file icon' (PNG only)
2: Other file icon
3: Cover (front)
4: Cover (back)
5: Leaflet page
6: Media (e.g. label side of CD)
7: Lead artist/lead performer/soloist
8: Artist/performer
9: Conductor
10: Band/Orchestra
11: Composer
12: Lyricist/text writer
13: Recording Location
14: During recording
15: During performance
16: Movie/video screen capture
17: A bright coloured fish
18: Illustration
19: Band/artist logotype
20: Publisher/Studio logotype
The default is 3 (front cover). There may only be one picture each
of type 1 and 2 in a file.
MIME-TYPE is optional; if left blank, it will be detected from the
file. For best compatibility with players, use pictures with MIME
type image/jpeg or image/png. The MIME type can also be --> to
mean that FILE is actually a URL to an image, though this use is
discouraged.
DESCRIPTION is optional; the default is an empty string
The next part specfies the resolution and color information. If
the MIME-TYPE is image/jpeg, image/png, or image/gif, you can
usually leave this empty and they can be detected from the file.
Otherwise, you must specify the width in pixels, height in pixels,
and color depth in bits-per-pixel. If the image has indexed colors
you should also specify the number of colors used.
FILE is the path to the picture file to be imported, or the URL if
MIME type is -->
skipyrich, реально реализовать сие чудо через api фубара?
Или уже проще будет написать внешнюю прогу, и мучать её через foo_run..