iOS .ARTWORK editing


.ARTWORK files are basically collections of images used by iOS. They contain things like the status bar images and Emoji icons. I figured out a fairly simple way to edit them, so I composed a guide, which can originally be found on iFans. I may have made a few changes from that one, but nothing major.
***This requires a bit of skill. It isn't as easy as "push button, get results." It'll take some command prompt usage, and following some instructions.
Also, doesn't work for every artwork file, only ones from iOS, specifically
Keyboard-Common.artwork
Keyboard-Emoji.artwork
Keyboard-Emoji@2x.artwork
Keyboard-Emoji~ipad.artwork
Keyboard-Latin.artwork
MobilePhonePackedImages.artwork
MobilePhonePackedImages.artwork
Other.artwork
Shared.artwork
Shared~ipad.artwork
Shared~iphone.artwork
Shared@2x.artwork
Shared@2x~ipad.artwork
Shared@2x~iphone.artwork
The supported iOS versions are
2.0
2.2
3.2
4.1 
4.2.1 
4.3.2  
4.3.3 
5.0 
5.0.1 
5.1
What you need:

Step 0: Prepare
After downloading/installing everything above, open the Start menu and search "environment variables" and choose the first result from Control Panel. Click New... and set the Variable Name to "Path" and the Variable Value as "%PATH%;C:\Python27". Then, run command prompt as an admin (search cmd in start, right-click, and choose Run as administrator) Enter this to get Python started:
chdir C:\Python27

Step 1(?): Decompiling
It's pretty much all command prompt from here. To decompile a .ARTWORK file and dump its contents into a directory, enter this into the command prompt you prepared in Step 0:
python C:\location\of\iOS-artwork.py export -a C:\location\of\.ARTWORK -d C:\location\of\extraction\directory
You do have to put in your own paths.

Step 2(?): Recompiling
Here's how to take a directory full of files and turn them into a .ARTWORK. Again, in the command prompt from Step 0, enter:
python C:\location\of\iOS-artwork.py create -a C:\location\of\original.ARTWORK -d C:\location\of\import\directory -c C:\location\of\new.ARTWORK
And again, you need your own paths. Note that the original .ARTWORK file serves as the template, meaning the directory you're trying to turn into a .ARTWORK must have every file from the original .ARTWORK with the same dimensions.

Hopefully should open some possibilities to themers. I'll do my best to answer questions. I got a lot of this from this tutorial.

2 comments:

  1. when I type the first command, cmd return "sorry, but the artwork file ... is not currently supported by this software". So what should I do?

    ReplyDelete
    Replies
    1. Is it one of the listed .ARTWORK files supported?

      Delete