Rewriting image Rendering

Now individual parsing of mp3, flac files is done.
and then they are rendered
This commit is contained in:
aditya-K2
2021-11-08 11:48:49 +05:30
parent 5e4e6fabbe
commit cad01293c8
2 changed files with 69 additions and 28 deletions

View File

@@ -43,7 +43,7 @@ func openImage(path string, c chan string) {
fw, fh := getFontWidth()
var im *ueberzug.Image
if path != "stop" {
img2, _ := getImg(getAlbumArt(path))
img2, _ := getImg(extractImageFromFile(path))
im, _ = ueberzug.NewImage(img2, int(float32(IMG_X)*fw)+viper.GetInt("ADDITIONAL_PADDING_X"), int(float32(IMG_Y)*fh)+viper.GetInt("ADDITIONAL_PADDING_Y"))
}
d := <-c