You can get the image from mp3 using the following code snippet, try this.
ffmpeg -ss 125 -i wrong-way-fixed.mp3 -t 1 \ -s 480x300 -f image2 /dev/null
or use this
ffmpeg -i input.mp3 -an -vcodec copy cover.jpg
Here you can determine the resolution of the image.
gowri source share