-
07-27-2008, 09:39 AM #1
[Guide] Open Other.artwork on 2.0 firmware
After struggling myself trying to work out how to open the Other.artwork file on the 2.0 firmware I have decided to put together a small guide.
Edit now for Windows and Mac Scroll down for Mac guide.
The Other.artwork file contains http://www.modmyi.com/forums/skinnin...dit-phone.html. Though some are out of date now on 2.0, most importantly for me in the black bar across the top on the lock screen.
Windows
Required files:
iPhoneShop2.0
iphone20-artwork.py Though must be saved as "iphone20-artwork.py"
Other.artwork from your iPhone (you will have to have a jailbroken iPhone and have ssh installed. The file can be found in /System/Library/Frameworks/UIKit.framework)
Create a new folder in C:/ called iphone
In this folder create a new folder called "img"
Download all the required files from the links above and save them to C:/iphone.

Open iPhoneShop

Click Install Python
This will open a download window in your default browser
Save and Run the file

Use the default settings





Now that Python is installed copy the script "iphone20-artwork.py" to "C
Python25\Scripts" (Note keep a copy in "C
iphone"to)

Go back to iPhoneShop and you will see that the install Python button is grey and the Install Python Imaging Library is now active

Click "Install Python Imaging Library"
This will open a download window in your default browser
Save and Run the file

Again use the default settings




Now we need to tell windows how to find Python
Right Click "My Computer" and select "Properties"

Select the "advanced" tab

Click "Environmental Variables"

In the second view, "System Variables" scroll down and select "Path".
Once highlighted click "Edit"
In the popup that opens scroll to the far right.
Add the following text ";C
Python25" without the quotes that is.

Now we need to tell Python how to find the scripts
Open regedit (start run and type in "regedit" without the quotes)
Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\
Right-click on "PythonPath" and choose to create a new key.
In the right hand panel right click your new key and select "Modify"
Type "C
Python25\Scripts" again without the quotes
Click "OK"

You can now try going back to iPhoneShop to extract the files but I was faced with an error message when selected Other.artwork from the drop down. The developer is planning an update in the near future.
So I will continue without using iPhoneShop.
Edit: If you do use iPhoneShop to extract your files the images will be in the format other-extraced-###.png these will have to be renamed other-###.png for you to be able to use the import details below. (Thanks Strider)
Open Command Prompt Windows key + R and type cmd or Start - Programs - Accessories - Command Prompt
Change to the directory c:/iphone

Now to export the files type:
python ./iphone20-artwork.py -export Other.artwork ./img

Hit enter to run

All the images have now been extracted to the folder "C:/iphone/img", you can edit these in your favorite image editing tool. Make sure that you save the images back to the img folder overriding the old files.
Once you have changed all the files you wanted to we have to import them back into the Other.artwork file. So head back to Command Prompt.
If you closed command prompt head back to C
iphone
then type:
python ./iphone20-artwork.py -import Other.artwork ./img Other.artwork

Hit enter to run

Now the Other.artwork has your changed images, SSH the file back to /System/Library/Frameworks/UIKit.framework (I would suggest making a backup of the Other.artwork file before you override it)
Once uploaded reboot your iPhone to see the changes.
Mac
Required Files:
Python 2.5
Python Imaging Library
MacPorts
iphone20-artwork.py Though must be saved as "iphone20-artwork.py"
Other.artwork from your iPhone (you will have to have a jailbroken iPhone and have ssh installed. The file can be found in /System/Library/Frameworks/UIKit.framework)
Start by creating a folder in the root of your Mac called "iphone"
Put the "Other.artwork" file and "iphone20-artwork.py" into the new folder
Create a folder in "iphone" called "img" (without the quotes)

Install MacPorts using the default settings:







Install Python 2.5 using the default settings:








Install Python Imaging Library using the default settings:





Now we have to register the Python Imaging Library
Open terminal and Type:
sudo /opt/local/bin/port install py25-pil

Now we should have the Mac ready for exporting.
Open terminal and navigate to the iphone folder

Type:
python ./iphone20-artwork.py -export Other.artwork ./img

Hit return to run

All the images have now been extracted to the folder "iphone/img", you can edit these in your favorite image editing tool. Make sure that you save the images back to the img folder overriding the old files.
Once you have changed all the files you wanted to we have to import them back into the Other.artwork file.
Open up terminal
Make sure that you are in the iphone folder as before
Type:
python ./iphone20-artwork.py -import Other.artwork ./img Other.artwork

Hit enter to run

Now the Other.artwork has your changed images, SSH the file back to /System/Library/Frameworks/UIKit.framework (I would suggest making a backup of the Other.artwork file before you override it)
Once uploaded reboot your iPhone to see the changes.
If you would like is the Other.artwork file with the black bar transparent drop me a pm with your email and I will send it to you.
Many thanks to Dave [IBODP] and Kevin SideAppsLast edited by killian; 07-28-2008 at 02:49 AM. Reason: Added Mac guide, updated links, and added notes
-
-
07-27-2008, 10:06 AM #2iPhoneaholic
- Join Date
- Oct 2007
- Location
- The Republic of Texas
- Posts
- 384
- Thanks
- 24
- Thanked 294 Times in 60 Posts
what about macs?
-
07-27-2008, 11:56 AM #3
Anything for macs?
-
07-27-2008, 12:03 PM #4
-
07-27-2008, 12:35 PM #5
Originally Posted by terminal
Yeah, it doesn't work...Last edited by lostgame; 07-27-2008 at 01:52 PM.
-
The Following User Says Thank You to lostgame For This Useful Post:
ggaimbot (07-27-2008)
-
07-27-2008, 03:03 PM #6
Is the folder you are trying to export the images to created? Have you changed to the correct directory before running the script?
-
07-27-2008, 05:31 PM #7
the problem is if u modify some images, u have to keep them the same size as the original one.~~it is not easy~~sometimes
-
07-27-2008, 05:33 PM #8
im on windows followed steps and i get no module named PIL.Image any help?
-
07-27-2008, 05:57 PM #9
-
07-27-2008, 07:31 PM #10
or just download iphonebrowser???????
-
07-27-2008, 10:01 PM #11
after i do the ./iphone20-artwork.py -import Other.artwork ./img Other.artwork
i got this....
Importing images to Other.artwork from directory ./img...
imported ./img\other-0.png
imported ./img\other-1.png
imported ./img\other-2.png
imported ./img\other-3.png
imported ./img\other-4.png
Traceback <most revent call last>:
File "./iphone20-artwork.py", line 317, in <module>
action_create()
File "./iphone20-artwork.py", line 293, in action_create
import_images<originalData, imageSizes, importDirectory, importPrefix,
outputArtworkFileFullName>
File "./iphone20-artwork.py", line 195, in import_images
r, g, b, a = importedPixels[x, y]
ValueError: need more than 3 values to unpack
__________________________________________________ ____________________
i am pretty sure its saying that i need an alpha layer on my image...but honestly, i am NOT an imaging person and i am suprised that i even got this far, but as of now i need help because i don't know if its something in the python script, although it just so happens that the 2 files that i made were other-5 and other-6 which is where it got the error on, so i kind of ruled that out. can someone guide me on this error please
Regards,
Strider
EDIT: It looks like the layer that i had my image on was a "Background" layer and when i looked at some of the other images they had "Layer 0" so i just made a new layer and named it "Layer 0" and copied everything that was on the "Background" layer and pasted it on the "Layer 0" layer and deleted the "Background" layer. After that it worked fine, now i just gotta test to see if the image saved
Last edited by ggaimbot; 07-27-2008 at 10:13 PM.
-
07-27-2008, 10:08 PM #12
i still get the line 40 no module PIL.File error followed the steps exactly any help? or can i just send a zip file to somebody that can import i just want my theme back! thanks for the help.
-
07-27-2008, 10:55 PM #13
second link is down
-
07-28-2008, 12:16 AM #14
http://davepeck.org/software/iphonea...20-artwork.txt
Save as and change .txt to .py
-
07-28-2008, 12:56 AM #15
Can you check that you have an image called other-0.png? There should also be a total of 497 images all of matching dimensions to the originals, if you have any more or less it wont work.
Yes, email me the files and i'll take a look. I'll PM my address.Last edited by killian; 07-28-2008 at 12:56 AM. Reason: Automerged Doublepost
-
07-28-2008, 12:59 AM #16
when you use the program instead of command prompt it saves the files as other-extract-###. i Ran into the same problem and i figured out that it HAS to be named other-### or else you will get that error when you try to rebuild the .artwork file through command prompt.
Regards,
Strider
-
The Following User Says Thank You to ggaimbot For This Useful Post:
killian (07-28-2008)
-
07-28-2008, 02:36 AM #17
Thanks Strider, I'll update the guide to include this.
-
07-28-2008, 08:44 AM #18What's Jailbreak?
- Join Date
- Jul 2008
- Location
- Ramadi, Iraq
- Posts
- 4
- Thanks
- 1
- Thanked 0 Times in 0 Posts
Do you guys know what number the home screen background is? The all black one? I changed Other-5 and Other-6 and apparently those are not them. Was wondering if one of you all knew which one to change.
-
07-28-2008, 08:57 AM #19Livin the iPhone Life
- Join Date
- Jun 2007
- Location
- Miami
- Posts
- 1,444
- Thanks
- 564
- Thanked 139 Times in 99 Posts
I am not showing this path HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\
can anyone help me out plz?
-
07-28-2008, 10:02 AM #20
---> Building zlib with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_ports_archivers_zlib/work/zlib-1.2.3" && make all " returned error 127
Command output: sh: make: command not found
Error: The following dependencies failed to build: freetype zlib jpeg python25 gettext expat libiconv gperf ncurses ncursesw
Error: Status 1 encountered during processing.
I'm Mac User and I got this error when type "sudo /opt/local/bin/port install py25-pil" in Terminal
please help



LinkBack URL
About LinkBacks
Reply With Quote

ther lostgame$ python ./iphone20-artwork.py -export Other.artwork ./img

