Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

How to convert iTunes album art images to PNG format Apps
Have you ever tried to open a piece of iTunes cover art in the Finder? Do you want to print a cover with your favorite app, but find that the artwork is in a format not recognized? The iTunes artwork files are all in .itc format, which is a PNG format with some data added into the files' headers.

To fix this, make a copy of the artwork (just in case), and then open the copy with a hex editor like 0xEd. Erase all the information between the beginning of file and the . just before PNG. After deleting, the file must begin with .PNG. Here are some screenshots to clarify: Save your changes, and your work is done.
    •    
  • Currently 3.00 / 5
  You rated: 1 / 5 (5 votes cast)
 
[44,427 views]  

How to convert iTunes album art images to PNG format | 21 comments | Create New Account
Click here to return to the 'How to convert iTunes album art images to PNG format' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to convert iTunes album art images to PNG format
Authored by: Jwink3101 on Mar 14, '07 08:39:50AM

When i drag itunes art out of the program and into finder, it saves it as a TextClipping. I downloaded 0xed (or whatever it is called) and it didn't look the same as the pictures you attached. I do not know if i was doing it correctly or not but it didn't work for me.

Thanks anyway



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: boredzo on Mar 14, '07 01:27:00PM

I do not know if i was doing it correctly or not but it didn't work for me.

You weren't.

You need to edit a copy of the .itc file for the album art, which you can get to in the Finder (look in ~/Music).



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: Zire on Mar 14, '07 02:44:56PM

Do not drag. Use the finder and go to you iTunes music folder and you'll find a "Album Artwork" folder.

Inside other two folders:

Download
Local

Inside other folders with all album arts



[ Reply to This | # ]
easier, with possible loss...
Authored by: rhowell on Mar 14, '07 08:58:37AM

An easier method, but may introduce some loss:

ctrl-click the album art and select "Copy". In Preview, choose File->New from Clipboard from the menu. Choose File->Save As..., and select PNG as the format.



[ Reply to This | # ]
easier, with possible loss...
Authored by: DavidRavenMoon on Mar 14, '07 11:08:28AM

That's how I do it as well... but I paste into Photoshop.

---
G4/Digital Audio/1GHz, 1 GB, Mac OS X 10.4.8 β€’ www.david-schwab.com β€’ www.myspace/davidschwab β€’ www.imanicoppola.net



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: DougAdams on Mar 14, '07 09:19:03AM
Save Artwork to Folder is an AppleScript that will save the artwork of the single selected track to a user-chosen folder as a PNG or JPG file.

---
Doug's AppleScripts for iTunes
http://www.dougscripts.com/itunes/

[ Reply to This | # ]

How to convert iTunes album art images to PNG format
Authored by: zebrum on Mar 14, '07 02:33:01PM

He means the artwork that itunes downloads you for free to Music/iTunes/Album Artwork. Not artwork embedded into MP3s which I think that script is for.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: DougAdams on Mar 14, '07 03:04:05PM
He means the artwork that itunes downloads you for free to Music/iTunes/Album Artwork. Not artwork embedded into MP3s which I think that script is for.

No doubt. And I didn't mean to suggest otherwise. I meant to suggest to readers of the hint that there are other means of exporting artwork, to be helpful. Although...I see a new AppleScript about to be born! Problem is, artwork files in the "Album Artwork" folder are named using the library ID and track ID...wicked pain tracking all that stuff down; have to dig through a lot of folders, compare against info in the XML file, and so on.

---
Doug's AppleScripts for iTunes
http://www.dougscripts.com/itunes/

[ Reply to This | # ]

Uh huh, as I thought
Authored by: DougAdams on Mar 14, '07 04:37:24PM
...which I think that script is for.

Oh. Wait a minute. You tested the script, right? Your supposition is actually incorrect. The script performs as advertised.

---
Doug's AppleScripts for iTunes
http://www.dougscripts.com/itunes/

[ Reply to This | # ]

How to convert iTunes album art images to PNG format
Authored by: hermes369 on Mar 14, '07 08:45:13PM

A better question would be how to get .png's with alpha into .itc format. I have found this to be impossible; despite the fact that the 'no image' image has transparency.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: elfkinz on Mar 14, '07 09:51:01PM

Odd ... I tried editing a copy of a .itc file just downloaded from iTunes and there is no .PNG in the code. Just after the word data, where in the example the .PNG follows I have a JFIF.

All the .itc files in my iTunes folder are the same way.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: wmertens on Mar 20, '07 09:19:24AM

That means it's a JPG file. Just delete up to the JFIF and save as JPG.

Wout.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: mathwiz777 on Mar 17, '07 08:53:41AM

I converted a bunch of .itc files into images, and they were in JPEG format with a header. Note that this was about 3-4 months ago, so Apple might have changed the format, but...



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: elfkinz on Mar 21, '07 01:05:11PM

I knew it was a .jpg file. The problem I'm having is were to edit to. I tried deleting everything before the JFIF, as well as leaving just one . before the JFIF, but no matter what I do I get an error "Couldn't open the file. It may be corrupt or a file format that Preview doesn't recognize."



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: Jason_ff on Oct 20, '10 10:50:56PM

It turns out what you have to do is actually delete up to and including where it says "data" and nothing else.

In the screenshots, it shows text like "data.PNG" and they tell you to delete everything before the ".PNG" part.

Well the same thing applies to if it instead says JFIF, it'll look like "data………..JFIF" or something, just delete up to and including the "data" part so then the start of your file would look like "……..JFIF" (not sure how many dots there are exactly, just all the dots after data, leave them).

That works for me as of iTunes 10.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: cocoalab on Apr 25, '07 03:40:58AM

It seems that internally, .itc files come in two flavours: JFIF (JPG) and PNG. The technique above works for the PNG based ones. If your .itc file shows JFIF instead of PNG in the header, it's a JPEG and the technique described above won't work.
What has worked for me is simply dropping the .itc file onto Graphic Converter. It seems to automatically ignore the header info and sees it as a straight JPEG. Then Save the file AS a .jpg and you're away.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: ttrtilley on May 08, '07 01:55:04AM

Dragging files/folders to File Juicer works well too.
Doesn't solve the naming problem though.



[ Reply to This | # ]
iTunes Album Art Extractor
Authored by: synerr on Jul 09, '07 08:25:24AM
If your have iTunes 7+ and Java 1.4+, try:

http://sourceforge.net/projects/iaae

It will extract all of your iTunes artwork into its native PNG or JPEG format. It can also generate an animated web mosaic of all of your album art so you can easily post it to a web site.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: Scenario on Aug 21, '11 05:06:28AM

Apple seems to have changed their .itc format in iTunes 10.5b90. There is now no ".PNG" immediately after the "data" tag, and I see the "data" tag repeated three times in a typical cover art file. Each occurrence is followed by padding now and I don't see ".PNG" or any other image type included in an .itc file.

This change breaks my app, which imports artwork from a user's iTunes Library. Note that this change appears to affect only newly assigned cover art in iTunes 10.5.

Anyone know what the new format consists of?



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: ctapler on Oct 22, '11 12:22:52PM

I wrote a Python script which converts my (JFIF/JPG-based) itc files to jpg files. It did work for me (using Python 3.2). You can find the code below. Unfortunately the formatting is removed (which is essential for Python). If anybody requires the script and knows how to distribute it in a better way, please let me know.
<code>
import argparse
import os

def convert(inDir, inFile, outDir):
outFile = outDir + inFile + '.jpg'
inFile = inDir + inFile
print("Converting {0:s} to {1:s}: ".format(inFile, outFile), end='')
buffer = open(inFile, "rb").read()
searchBuffer = buffer.decode('ascii', 'replace')
# According to http://de.wikipedia.org/wiki/JPEG_File_Interchange_Format the header
# is as follows:
# FF D8 FF E0 00 10 4A 46 49 46 00 01.
# J F I F
# As we search for JFIF (easier to do), we have to subtract the position of 6 bytes
index = searchBuffer.find('JFIF')
index = index - 6
if index < 0:
print('Unable to find JPEG header. Skipping')
return
print('Found JPEG header position at {0:d}: '.format(index), end='')
outBuf = open(outFile, "wb")
outBuf.write(buffer[index:])
outBuf.close();
print(' Done.')

parser = argparse.ArgumentParser(description='Converts the apple itc format to a jpeg format')
parser.add_argument('--inDir', action='store', dest='inDir', help='Input directory', default='.')
parser.add_argument('--outDir', action='store', dest='outDir', help='Output directory')
args = parser.parse_args()
print('Input directory: {0:s}'.format(args.inDir))
if args.outDir == None:
args.outDir = args.inDir
print('Output directory: {0:s}'.format(args.outDir))
files = os.listdir(args.inDir)
# Filter out files with extension *.itc
convList = []
for item in files:
if item[-4:] == '.itc':
convList += [item]

# Walk through the list of files and convert them
for item in convList:
convert(args.inDir + '/', item, args.outDir + '/')

print('Done.')
</code>
I call the script as follows:
<code>
"c:\Program Files\Python3\python.exe" main.py --inDir c:/temp/in/
</code>
The script takes the *.itc files from the input directory and writes the jpg files into the same directory.



[ Reply to This | # ]
How to convert iTunes album art images to PNG format
Authored by: ctapler on Oct 24, '11 10:03:49AM

Just recognized that it also works for *.itc2 files. Just adapt the script above for itc2 extensions.



[ Reply to This | # ]