Page 1 of 3 123 LastLast
Results 1 to 20 of 49

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: [Guide] Open Other.artwork on 2.0 firmware

  1. #1
    What's Jailbreak?
    Join Date
    Apr 2008
    Location
    London
    Posts
    24
    Thanks
    3
    Thanked 15 Times in 8 Posts

    Default [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 "CPython25\Scripts" (Note keep a copy in "Ciphone"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 ";CPython25" 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 "CPython25\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 Ciphone
    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 SideApps
    Last edited by killian; 2008-07-28 at 10:49 AM. Reason: Added Mac guide, updated links, and added notes

  2. The Following 7 Users Say Thank You to killian For This Useful Post:

    bhz1 (2008-08-09), Cuongnd (2008-07-29), kaician (2008-08-02), lostgame (2008-07-27), MaVerick! (2009-03-04), noonatt (2008-11-20), Onemajorflaw (2008-08-31)

  3. #2
    iPhoneaholic opusandbill's Avatar
    Join Date
    Oct 2007
    Location
    The Republic of Texas
    Posts
    384
    Thanks
    24
    Thanked 305 Times in 60 Posts

    what about macs?

  4. #3

  5. #4
    What's Jailbreak?
    Join Date
    Apr 2008
    Location
    London
    Posts
    24
    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.

  6. #5
    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; 2008-07-27 at 09:52 PM.

  7. The Following User Says Thank You to lostgame For This Useful Post:

    ggaimbot (2008-07-28)

  8. #6
    What's Jailbreak?
    Join Date
    Apr 2008
    Location
    London
    Posts
    24
    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?

  9. #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

  10. #8
    im on windows followed steps and i get no module named PIL.Image any help?

  11. #9
    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

  12. #10
    or just download iphonebrowser???????

  13. #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; 2008-07-28 at 06:13 AM.

  14. #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.

  15. #13

  16. #14
    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

  17. #15
    What's Jailbreak?
    Join Date
    Apr 2008
    Location
    London
    Posts
    24
    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; 2008-07-28 at 08:56 AM. Reason: Automerged Doublepost

  18. #16
    Quote Originally Posted by killian View Post
    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.
    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

  19. The Following User Says Thank You to ggaimbot For This Useful Post:

    killian (2008-07-28)

  20. #17
    What's Jailbreak?
    Join Date
    Apr 2008
    Location
    London
    Posts
    24
    Thanks
    3
    Thanked 15 Times in 8 Posts

    Thanks Strider, I'll update the guide to include this.

  21. #18
    What's Jailbreak? apathy96's Avatar
    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.

  22. #19
    I am not showing this path HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\
    can anyone help me out plz?

  23. #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

Page 1 of 3 123 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •