Basically it is just my... imagination?
I think that JPG and zip have their own magic number, then if I can place musics in a archive and append into the JPG file?
After some tries and search on internet, I succedd, however I found that there are already some ways to do it on internet.
However don't know why sometimes those methods cannot be used, so I still decided to post it.
There will be a file called "music_track.py" (well, there's no GUI this time)
When you run this script, it will ask you for a picture (can be the picture proceed or a JPEG picture)
And it will jump into a fake "interaction shell"
You can input some command into it
Input help will result in
add - Add songs to SoundTrack
rem - Remove songs from SoundTrack
save - Save changes and exit
exit - Discard changes and exit
A small script for playing the music inside picture called "play.py"
The script for extract the files inside have not been implemented, but will be uploaded later
You can also do it yourself! (As known as, DIY)
The zip archive is append just after the JPEG file, and
it is also correct to said that the archive is stored after the first FF D9 (b'\xff\xd9')
so no matter use ZipFile in python or write it in a file and extract it is also OK.
There are a example picture which include two japanese music I like is inside the repo. You can test with it.