[HOW TO][Windows 7/8-only] Decompile & recompile .ARTWORK files

Discussion in 'iOS Themes and Customization' started by chickenmatt5, Mar 12, 2012.

  1. sam_rock Active Member

    Member Since:
    Oct 18, 2009
    Message Count:
    807
    Device:
    Samsung Galaxy Nexus
    Code:
    c:\Python27>python ios-artwork.py export -a c:\art\shared@2x.artwork[/EMAIL] -d "c:\ip
    d stuff"
    assuming your iOS-artwork.py is in C:\Python27\ directory, which it shouldn't. just enter the full root address of where the iOS-artwork.py file is. you don't need to be in C:\Python27 directory, be in iOS-artwork.py file's directory if you want to enter command directly from there in which case... could go with loading iOS-artwork.py directly!

    your artwork file is C:\art\shared@2x.artwork

    and your extracting directory is C:\ipd stuff with spaces.
  2. Ratio New Member

    Member Since:
    May 2, 2012
    Message Count:
    3
    Device:
    4G iPod touch
    "FAIL. The image file named c:\ipod stuff\WhiteOnBlackShadow_4_Bars@2x.png was in
    valid or could not be read.
    " Is there any way to fix this? I never changed this specific .PNG file....but it's invalid?
  3. sam_rock Active Member

    Member Since:
    Oct 18, 2009
    Message Count:
    807
    Device:
    Samsung Galaxy Nexus
    was this when recompiling the artwork again? make sure the image is readable and matches the original image in dimension in both width and height. or decompile the artwork from start again (after deleting the previously extracted files) and try again.
  4. Ratio New Member

    Member Since:
    May 2, 2012
    Message Count:
    3
    Device:
    4G iPod touch
    I figured it out long ago =) thank you for your help. I'm experimenting with my .artwork files a lot =D
  5. Krtk Active Member

    Member Since:
    Oct 14, 2011
    Message Count:
    264
    Device:
    4G iPod touch
    I'm experiencing a problem while decompiling the .artwork file. When I enter this command - python iOS-artwork.py -a D:\downloads\shared@2x.artwork -d D:\downloads\artwork , it says
    File "iOS-artwork.py" line 84
    print"\n%s\n" % message
    SyntaxError: invalid syntax
  6. Krtk Active Member

    Member Since:
    Oct 14, 2011
    Message Count:
    264
    Device:
    4G iPod touch
  7. Vegeta Banned

    Member Since:
    Jan 10, 2011
    Message Count:
    747
    I can't explain your error but be certain to read the tutorial properly. It took me a few failed attempts before I realized I was doing something wrong. Also, my advice would be to create a folder on the desktop for anything related to the artwork extracting. It makes it simpler to have it all in one place, for commands etc.
  8. Krtk Active Member

    Member Since:
    Oct 14, 2011
    Message Count:
    264
    Device:
    4G iPod touch
    Hmm...Don't you think that the error I received is similar to the errors we receive when there's a problem in our PHP script? It says the line that has some problem in it...maybe the iOS-artwork.py script has some error in it...if your script worked properly, please can you upload it to a file sharing website? I'll download it, and see if it works. That's all I can do for now...until someone else helps me.
  9. chickenmatt5 Community Development Team

    Member Since:
    Aug 3, 2010
    Message Count:
    3,443
    Device:
    iPhone 4S (Black)
    You're trying to decompile? Looks like you forgot export. Try this:
    Code:
    python iOS-artwork.py export -a D:\downloads\shared@2x.artwork -d D:\downloads\artwork
  10. Krtk Active Member

    Member Since:
    Oct 14, 2011
    Message Count:
    264
    Device:
    4G iPod touch
    Thanks, but that didn't work, it still shows that same error...