Rockbox Technical Forums

Third Party => Other Utilities => Topic started by: kps on February 22, 2009, 09:08:31 PM

Title: Export Album Art for Rockbox - Requesting iTunes OSX testers
Post by: kps on February 22, 2009, 09:08:31 PM
I've written an iTunes script, here (http://www.rockbox.org/twiki/bin/viewfile/Main/AlbumArt?rev=1;filename=ExportAlbumArtFor_Rockbox0.2.zip), to extract and convert album art into Windows BMP files that Rockbox understands. I have not used Applescript much, and have only run this script on my own files, so I'm looking for people willing to try it out before I make it more publicly available.

I wrote this on OS X 10.5.6 and iTunes 8; I don't know which older versions it might also work with.

To install the script, download the zip file, extract it, and put the file in it (Export Album Art for Rockbox) into your ~/Library/iTunes/Scripts folder.

To run the script, select some tracks and invoke the script from iTunes script menu. (If no tracks are selected, it should run on the current playlist, but this hasn't been tested much.) It will ask for an image size in pixels, defaulting to 100. For tracks that belong to an album, it will create an image file "cover.sizexsize.bmp" taken from the first selected track that has album art. For tracks that don't belong to an album, it will create individual image files "filename.sizexsize.bmp".

There are some other options that are currently not exposed, and haven't really been tested; they can only be used by editing the properties at the top of the script:

Important: This script is free, but it might be worth less than you paid for it. Don't blame me if it destroys the universe. You have backups, right?
Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: Llorean on February 22, 2009, 09:18:48 PM
Why is it creating sizexsize versions of the files? Those shouldn't be necessary any more, since we have scaling.
Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: kps on February 22, 2009, 09:34:17 PM
Perhaps that should be off by default, or at least exposed in a dialog, but I used that form for two reasons:
Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: saratoga on February 22, 2009, 10:23:56 PM
Resizing on the PC is probably of higher quality, so I guess its not entirely pointless.
Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: Llorean on February 22, 2009, 10:33:34 PM
I'm not sure, but I think you can still fail to find album art if there's no cover.bmp and only size-specific ones. It may be higher quality on the PC, but the quality isn't bad at all in Rockbox. A single 300x300 or 400x400 file or so is probably good enough for the vast majority of cases.
Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: kps on February 22, 2009, 10:56:45 PM
I'm not sure, but I think you can still fail to find album art if there's no cover.bmp and only size-specific ones.
That's true; probably the best thing to do, when using multiple sizes, is to have the largest one named cover.bmp. Having the script generate multiple sizes would add a lot of complications, though, and Applescript is a nuisance to write, so I may just end up following your original suggestion and default to cover.bmp alone.

Title: Re: Request for testers: Extracting album art from iTunes on OS X
Post by: spike66 on February 23, 2009, 12:14:53 PM
kps, have you checked http://vcardenasblog.blogspot.com/2008/03/ipod-album-art-extracter-for-rockbox.html and http://vcardenasblog.blogspot.com/2008/09/album-art-extracter-for-rockbox.html found in http://www.rockbox.org/twiki/bin/view/Main/AlbumArt#Useful_tools ? It's for Windows, not an iTunes script, but the result seems to be very similar