Open jcljb opened 1 year ago
ok, I will try
You can read music files and get the data (and images) with this library https://github.com/Zeugma440/atldotnet Like this
byte[]? GetCoverImage(string filePath)
{
var LoadTrack = new Track(filePath);
if (LoadTrack.EmbeddedPictures.Count != 0)
{
return LoadTrack.EmbeddedPictures[0].PictureData;
}
else
{
string directoryPath = Path.GetDirectoryName(filePath);
var jpgFiles = Directory.GetFiles(directoryPath, "*.jpg", SearchOption.TopDirectoryOnly);
if (jpgFiles.Length > 0)
{
return File.ReadAllBytes(jpgFiles[0]);
}
}
return null;
}
Thanks, i will try too
Hello, could it be possible to specify a local image file or retrieve image in metadata of a music local file (p. for Android ptf) ?