- public bool buffer_to_jpeg (uint8[] buffer, string buffer_mime, string target) throws Error
This function performs the same operation as
file_to_jpeg with the exception that a raw buffer can be used
instead providing buffer.length and the buffer_mime too.
- public bool file_to_jpeg (string filename, string target) throws Error
Save filename to target as JPEG format.
- public bool get_file (string? artist, string? title, string? prefix, out File cache_file)
Gets the files pointing to cache files suitable for storing the
media art provided by the artist, title and file arguments.
- public bool get_path (string? artist, string? title, string? prefix, out string cache_path)
- public void plugin_init (int max_width)
This function facilitates a plugin's need to create any
internal caches before anything else is done.
- public void plugin_shutdown ()
This function facilitates a plugin's need to clean up any
internal caches.
- public bool remove (string artist, string? album, Cancellable? cancellable = null) throws Error
Removes media art for given album/artist provided.
- public async bool remove_async (string artist, string? album, int io_priority, Object? source_object, Cancellable? cancellable) throws Error
Removes media art for given album/artist provided.
- public string strip_invalid_entities (string? original)
Strip a albumname or artistname string to prepare it for calculating
the media art path with it.