Forum

How to extract home and lock screen wallpapers from iOS12  

   RSS

1

I emailed Dave a couple of days ago about trying to extract my home and lock screen wallpapers from my iPad because I don't have a copy.  I hoped that iMazing would somehow allow me to get these files out and it turned out that it does.

In iMazing, open the device and go to the File System -> Backup/HomeDomain/Library/Springboard
Low res JPEG thumbnails: HomeBackgroundThumbnail.jpg, LockBackgroundThumbnail.jpg
CPBITMAPs: LockBackground.cpbitmap, HomeBackground.cpbitmap

There's also the non-cropped cpbitmaps there: OriginalLockBackground.cpbitmap, OriginalHomeBackground.cpbitmap

This was a great start but the problem I had was being able to convert the cpbitmap files into a format I can use.  GraphicsConverter can allegedly handle them but they appeared corrupted.

Time for further investigation.
It looks like iOS12 saves cpbitmap files slightly differently - At least, according to  https://gist.github.com/danielsharvey/929a525712a2b89ebb561226cc32f3e7  it does.
I’ve grabbed that python script and saved it as a file called convert.py. (sudo nano convert.py and paste the script into the file).   I then had to use chmod +x convert.py to make it executable.
Of course, it failed.  Life would be boring if it worked first time.
Traceback (most recent call last):
 File "./convert.py", line 2, in <module>
 import pil
ImportError: No module named pil
I had to install first pip and then Pillow in order to get the required libraries but now it’s done exactly what I wanted - I’ve been able to extract both the files successfully.
To install pip: sudo easy_install pip
Then to install Pillow: sudo pip install Pillow
 
ShackiMac:~ feek$ ./convert.py /Users/feek/Desktop/OriginalLockBackground.cpbitmap lock.png
bplist00
Size: 1200x636
1200
ShackiMac:~ feek$
This is good geeky stuff, I love it.  I've learned from it and I've also been able to extract the png files.
This topic was modified 7 months ago by Feek
Share: