diff --git a/playingbar.go b/playingbar.go index 31722ffb..d268b9c7 100644 --- a/playingbar.go +++ b/playingbar.go @@ -403,7 +403,7 @@ func (p *PlayingBar) updatePhoto() { // resize the photo according to space left for x and y axis dstImage := imaging.Resize(p.albumPhotoSource, imageWidth, 0, imaging.Lanczos) positionX := x*colPixel + width*colPixel - dstImage.Rect.Dx() - colPixel - positionY := y*rowPixel - dstImage.Rect.Dy() - rowPixel/2 + positionY := y*rowPixel - rowPixel - dstImage.Rect.Dy() // register new image p.albumPhoto, err = ugo.NewImage(dstImage, positionX, positionY)