The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion
Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 07-27-2008, 10:39 AM
What's Jailbreak?
 
Join Date: Apr 2008
Device + Firmware: iPhone 3G 2.0
Operating System: OSX 10.5.2 / XP
Location: London
Posts: 20
Thanks: 3
Thanked 15 Times in 8 Posts
[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.
Click the image to open in full size.


Open iPhoneShop
Click the image to open in full size.

Click Install Python
This will open a download window in your default browser
Save and Run the file
Click the image to open in full size.

Use the default settings
Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Now that Python is installed copy the script "iphone20-artwork.py" to "CPython25\Scripts" (Note keep a copy in "Ciphone"to)
Click the image to open in full size.

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 the image to open in full size.

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

Again use the default settings
Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Now we need to tell windows how to find Python
Right Click "My Computer" and select "Properties"
Click the image to open in full size.

Select the "advanced" tab
Click the image to open in full size.

Click "Environmental Variables"
Click the image to open in full size.

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 ";CPython25" without the quotes that is.
Click the image to open in full size.

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 "CPython25\Scripts" again without the quotes
Click "OK"
Click the image to open in full size.

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
Click the image to open in full size.

Now to export the files type:
python ./iphone20-artwork.py -export Other.artwork ./img
Click the image to open in full size.

Hit enter to run
Click the image to open in full size.

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 Ciphone
then type:
python ./iphone20-artwork.py -import Other.artwork ./img Other.artwork
Click the image to open in full size.

Hit enter to run
Click the image to open in full size.

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)
Click the image to open in full size.

Install MacPorts using the default settings:
Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Install Python 2.5 using the default settings:
Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Install Python Imaging Library using the default settings:
Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Now we have to register the Python Imaging Library
Open terminal and Type:
sudo /opt/local/bin/port install py25-pil
Click the image to open in full size.

Now we should have the Mac ready for exporting.
Open terminal and navigate to the iphone folder
Click the image to open in full size.

Type:
python ./iphone20-artwork.py -export Other.artwork ./img
Click the image to open in full size.

Hit return to run
Click the image to open in full size.

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
Click the image to open in full size.

Hit enter to run
Click the image to open in full size.

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 SideApps

Last edited by killian; 07-28-2008 at 03:49 AM.. Reason: Added Mac guide, updated links, and added notes
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 7 Users Say Thank You to killian For This Useful Post:
bhz1 (08-08-2008), Cuongnd (07-29-2008), kaician (08-01-2008), lostgame (07-27-2008), MaVerick! (03-04-2009), noonatt (11-20-2008), Onemajorflaw (08-31-2008)
  #2  
Old 07-27-2008, 11:06 AM
opusandbill's Avatar
iPhoneaholic
 
Join Date: Oct 2007
Device + Firmware: iPhone 1st Gen 2.2.1
Operating System: Mac 10.4.11
Location: The Republic of Texas
Posts: 371
Thanks: 23
Thanked 204 Times in 57 Posts

what about macs?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 07-27-2008, 12:56 PM
Green Apple
 
Join Date: May 2008
Device + Firmware: iPhone 3G 2.0 pwned
Operating System: OSX 10.5.2, Vista SP1
Posts: 67
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to lostgame Send a message via Skype™ to lostgame

Anything for macs?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 07-27-2008, 01:03 PM
What's Jailbreak?
 
Join Date: Apr 2008
Device + Firmware: iPhone 3G 2.0
Operating System: OSX 10.5.2 / XP
Location: London
Posts: 20
Thanks: 3
Thanked 15 Times in 8 Posts

Quote:
Originally Posted by opusandbill View Post
what about macs?
Updated post to include a Mac guide.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 07-27-2008, 01:35 PM
Green Apple
 
Join Date: May 2008
Device + Firmware: iPhone 3G 2.0 pwned
Operating System: OSX 10.5.2, Vista SP1
Posts: 67
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to lostgame Send a message via Skype™ to lostgame

Quote:
Originally Posted by terminal
Jennyther lostgame$ python ./iphone20-artwork.py -export Other.artwork ./img

Exporting images from Other.artwork to directory ./img...
Traceback (most recent call last):
File "./iphone20-artwork.py", line 313, in <module>
action_export()
File "./iphone20-artwork.py", line 256, in action_export
export_images(data, imageSizes, exportDirectory, exportPrefix)
File "./iphone20-artwork.py", line 163, in export_images
exportedImage.save(imageName, "PNG")
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL/Image.py", line 1399, in save
fp = __builtin__.open(fp, "wb")
IOError: [Errno 2] No such file or directory: './img/other-0.png'

Yeah, it doesn't work...

Last edited by lostgame; 07-27-2008 at 02:52 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to lostgame For This Useful Post:
ggaimbot (07-27-2008)
  #6  
Old 07-27-2008, 04:03 PM
What's Jailbreak?
 
Join Date: Apr 2008
Device + Firmware: iPhone 3G 2.0
Operating System: OSX 10.5.2 / XP
Location: London
Posts: 20
Thanks: 3
Thanked 15 Times in 8 Posts

Is the folder you are trying to export the images to created? Have you changed to the correct directory before running the script?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 07-27-2008, 06:31 PM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 9
Thanks: 2
Thanked 1 Time in 1 Post

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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 07-27-2008, 06:33 PM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts

im on windows followed steps and i get no module named PIL.Image any help?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 07-27-2008, 06:57 PM
Green Apple
 
Join Date: May 2008
Device + Firmware: iPhone 3G 2.0 pwned
Operating System: OSX 10.5.2, Vista SP1
Posts: 67
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to lostgame Send a message via Skype™ to lostgame

Quote:
Originally Posted by killian View Post
Is the folder you are trying to export the images to created? Have you changed to the correct directory before running the script?
yes and yes. :S
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 07-27-2008, 08:31 PM
Green Apple
 
Join Date: Mar 2008
Device + Firmware: iphone 1.1.4
Posts: 33
Thanks: 6
Thanked 2 Times in 2 Posts

or just download iphonebrowser???????
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 07-27-2008, 11:01 PM
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: White 3g iPhone 16GB 2.0
Operating System: Windows XP Pro
Posts: 7
Thanks: 4
Thanked 3 Times in 2 Posts

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 11:13 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 07-27-2008, 11:08 PM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts

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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 07-27-2008, 11:55 PM
Green Apple
 
Join Date: May 2008
Device + Firmware: 2g iphone 3.0
Operating System: OSX WIN7
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts

second link is down
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 07-28-2008, 01:16 AM
Green Apple
 
Join Date: Oct 2007
Device + Firmware: 2G 3.1.2
Operating System: Hackint0sh 10.6
Location: Reno
Posts: 34
Thanks: 16
Thanked 6 Times in 5 Posts
Send a message via AIM to lopbird33 Send a message via MSN to lopbird33 Send a message via Skype™ to lopbird33

Quote:
Originally Posted by redrider218 View Post
second link is down
http://davepeck.org/software/iphonea...20-artwork.txt

Save as and change .txt to .py
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 07-28-2008, 01:56 AM
What's Jailbreak?
 
Join Date: Apr 2008
Device + Firmware: iPhone 3G 2.0
Operating System: OSX 10.5.2 / XP
Location: London
Posts: 20
Thanks: 3
Thanked 15 Times in 8 Posts

Quote:
Originally Posted by lostgame View Post
Yeah, it doesn't work...
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.

Quote:
Originally Posted by jags828 View Post
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.
Yes, email me the files and i'll take a look. I'll PM my address.

Last edited by killian; 07-28-2008 at 01:56 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://modmyi.com/forums/skinning-themes-discussion/260021-guide-open-other-artwork-2-0-firmware.html
Posted By For Type Date
MacThemes Forum / [theme] Matte UI v1.1 by Shubham This thread Refback 05-15-2009 08:52 PM


Go to Top
ModMyI

All times are GMT -6. The time now is 04:16 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top