PDA

View Full Version : How to get Artwork?



Geoh
2008-03-07, 10:18
Just received my Duet... very cool!
I have everything up and running but album artwork is not displaying on SqueezeCenter or the Duet controller.
I'm using iTunes for music files......
thx
geoh

MuckleEck
2008-03-07, 10:42
geoh,

unfortunately the way itunes stores the artwork is AFAIK not supported by anything other than itunes.

To get artwork visible use MP3tag (if you are running a PC) and have it download artwork as folder.jpg to each separate album folder. SqueezeCenter can then read these folder.jpg files.

Alternatively copy and paste each of the images from itunes into the directories manually they will be saved as image.bmp so will need to add that name to Squeezecenter, this could be very laborious depending on how many albums you have.

FInally you could try http://sourceforge.net/projects/iaae although I haven't personally used it

Mitch Harding
2008-03-07, 10:56
Any album art download suggestions for Linux users (not for iTunes, of
course)? I want to see how they look on my new SBC.

On Fri, Mar 7, 2008 at 11:42 AM, MuckleEck
<MuckleEck.35wycz1204911901 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> geoh,
>
> unfortunately the way itunes stores the artwork is AFAIK not supported
> by anything other than itunes.
>
> To get artwork visible use MP3tag (if you are running a PC) and have it
> download artwork as folder.jpg to each separate album folder.
> SqueezeCenter can then read these folder.jpg files.
>
> Alternatively copy and paste each of the images from itunes into the
> directories manually they will be saved as image.bmp so will need to
> add that name to Squeezecenter, this could be very laborious depending
> on how many albums you have.
>
> FInally you could try http://sourceforge.net/projects/iaae although I
> haven't personally used it
>
>
> --
> MuckleEck
>
> Alasdair
>
> 3 SB3s - Linn - Acoustat - AudioEngine 2 - Cambridge Audio 640R -
> Mordaunt Short
> ------------------------------------------------------------------------
> MuckleEck's Profile: http://forums.slimdevices.com/member.php?userid=11301
>
>
> View this thread: http://forums.slimdevices.com/showthread.php?t=44344
>
>

Geoh
2008-03-07, 11:04
geoh,

unfortunately the way itunes stores the artwork is AFAIK not supported by anything other than itunes.

To get artwork visible use MP3tag (if you are running a PC) and have it download artwork as folder.jpg to each separate album folder. SqueezeCenter can then read these folder.jpg files.

Alternatively copy and paste each of the images from itunes into the directories manually they will be saved as image.bmp so will need to add that name to Squeezecenter, this could be very laborious depending on how many albums you have.

FInally you could try http://sourceforge.net/projects/iaae although I haven't personally used it

Well that bites!!!!
Consequently is there a better way, than Apple Lossless, to store my music CDs on my computer for use with SqueezeCenter and the Duet?
thx
geoh

MuckleEck
2008-03-07, 11:08
geoh,

yup it bites and I found out the hard way...re-ripping my entire collection!

Most of the guys here on the forum use FLAC and with foobar2000 or dBpoweramp (again both windows) you can convert from Apple Lossless to FLAC (again lossless)

Once in FLAC, mp3tag or MediaMonkey can bring the atrwork in....

Which OS are you using?

Mark Lanctot
2008-03-07, 12:16
Any album art download suggestions for Linux users (not for iTunes, of
course)? I want to see how they look on my new SBC.

Try Album Cover Art Downloader - it's abandonware though and Google won't find anything but a forum member is hosting it:

http://www.unrealvoodoo.org/hiteck/projects/albumart/

...I notice Google will find it (3rd hit) when you enter "Album Cover Art Downloader Linux" as a search term. Omit the "Linux" and you're flooded with all those Windows software download "collection" sites.

Mitch Harding
2008-03-07, 14:44
Thanks for the tip. I'll give it a try this weekend. I still think
I'd prefer the SBC to have an "omit album art" setting, both for
people without album art and for people who want to fit more songs on
the screen, but I am curious to see how it looks with the album art.

On Fri, Mar 7, 2008 at 1:16 PM, Mark Lanctot
<Mark.Lanctot.35x2rb1204917602 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Mitch Harding;276479 Wrote:
> > Any album art download suggestions for Linux users (not for iTunes, of
> > course)? I want to see how they look on my new SBC.
>
> Try Album Cover Art Downloader - it's abandonware though and Google
> won't find anything but a forum member is hosting it:
>
> http://www.unrealvoodoo.org/hiteck/projects/albumart/
>
> ...I notice Google will find it (3rd hit) when you enter "Album Cover
> Art Downloader Linux" as a search term. Omit the "Linux" and you're
> flooded with all those Windows software download "collection" sites.
>
>
> --
> Mark Lanctot
> ------------------------------------------------------------------------
> Mark Lanctot's Profile: http://forums.slimdevices.com/member.php?userid=2071
>
>
> View this thread: http://forums.slimdevices.com/showthread.php?t=44344
>
>

Geoh
2008-03-07, 14:54
geoh,

yup it bites and I found out the hard way...re-ripping my entire collection!

Most of the guys here on the forum use FLAC and with foobar2000 or dBpoweramp (again both windows) you can convert from Apple Lossless to FLAC (again lossless)

Once in FLAC, mp3tag or MediaMonkey can bring the atrwork in....

Which OS are you using?

Thanks for the info!
I'm using Windows XP.
If you have the time could you run me through the setup procedure for converting my music from Apple Lossless to FLAC via either of the methods you mentioned (foobar2000 or dBpoweramp), keeping it as simple and detailed (step by step)
as possible:)

kolding
2008-03-07, 15:10
I like Album Artwork Aggregator.
http://team.thenexusnet.com/nexus/AAA/
Seems to do the trick.
Of course, it relies on your directory structure as the method of finding album and artist names, and no idea how it would work on classical music (for example), but it's pretty good with most newer music.

EnochLight
2008-03-07, 20:33
geoh,

unfortunately the way itunes stores the artwork is AFAIK not supported by anything other than itunes.

This is simply not true. Any album artwork in iTunes should show up fine in SqueezeCenter as well as on your Controller - it works fine on mine.


I have everything up and running but album artwork is not displaying on SqueezeCenter or the Duet controller. I'm using iTunes for music files...
geoh

geoh, your album artwork in iTunes should show up fine in SqueezeCenter as well as on your Controller. Are you syncing your iTunes Library XML file with SqueezeCenter or are you just pointing SqueezeCenter to a folder where all of your iTunes music is stored? If the latter, that's where your problem is. You have to show SqueezeCenter where your iTunes Library XML file is and sync it that way. BTW, via iTunes you also have to be logged into your iTMS account and select 'Advanced - Get Album Artwork' to download missing album artwork. Anything purchased off of iTMS comes with its own album artwork (just make sure it's iTunes Plus - DRM free so you can play it on your Squeezeboxen).

Enjoy!

mherger
2008-03-07, 22:28
> This is simply not true. Any album artwork in iTunes should show up
> fine in SqueezeCenter as well as on your Controller - it works fine on
> mine.

Artwork downloaded from iTunes shop won't work. James iTunes updater plugin allows to display it in the web interface's player panel, but I'm not sure about the Controller.

--

Michael

jdbaker
2008-03-07, 23:07
Will someone from SD please explain this? Itunes is integrated into SS/SC but the artwork is very confusing. I use Itunes to manage my music and have just upgraded to SC7. I have meticulously added artwork to all of my albums, it works great in Itunes. In SC7 some of the albums show artwork, most do not. Why is that? Could someone from SD please clarify what all of us that use Itunes to manage our music have to do for the artwork to be displayed in SC7.

Thanks,

DB

atkinsonrr
2008-03-07, 23:26
I received my new Duet today and excitement quickly gave way to frustration as I have been trying to get iTunes artwork to show up in SqueezeCenter most of the night. Can someone from SD HELP!!??

mherger
2008-03-07, 23:42
> Will someone from SD please explain this?

I am a Logitech employee, and I can try to explain again: iTunes/Apples uses their own, proprietary file format to store artwork downloaded from the iTunes shop. Thus we can't read them.

> Itunes is integrated into
> SS/SC but the artwork is very confusing. I use Itunes to manage my
> music and have just upgraded to SC7. I have meticulously added artwork
> to all of my albums, it works great in Itunes. In SC7 some of the
> albums show artwork, most do not. Why is that?

Most likely you only see the artwork files you did _not_ download using iTunes.

> Could someone from SD
> please clarify what all of us that use Itunes to manage our music have
> to do for the artwork to be displayed in SC7.

There are tools out there to export that artwork to regular files. But AFAIK they just dump everything in one folder and you'd have to sort the resulting collection of artwork files manually. Consequently you might be better off downloading those files yourself while iTunes is ripping your files :-(.

You can find more information about this issue in the following bug report:
http://bugs.slimdevices.com/show_bug.cgi?id=4180

--

Michael

MuckleEck
2008-03-08, 05:48
This is simply not true. Any album artwork in iTunes should show up fine in SqueezeCenter as well as on your Controller - it works fine on mine.

geoh, your album artwork in iTunes should show up fine in SqueezeCenter as well as on your Controller. Are you syncing your iTunes Library XML file with SqueezeCenter or are you just pointing SqueezeCenter to a folder where all of your iTunes music is stored? If the latter, that's where your problem is. You have to show SqueezeCenter where your iTunes Library XML file is and sync it that way. BTW, via iTunes you also have to be logged into your iTMS account and select 'Advanced - Get Album Artwork' to download missing album artwork. Anything purchased off of iTMS comes with its own album artwork (just make sure it's iTunes Plus - DRM free so you can play it on your Squeezeboxen).

Enjoy!

I have to disagree, album artwork downloaded by itunes into the itunes directory does not show up in Squeezecenter (they are stored as ITC files in the Album Artwork folder). Artwork downloaded separately and put into the folders, embedded into the file, or added by a 3rd party application into itunes will show up. Itunes will display album art when it is stored as a folder.jpg, embedded into the file or when it is stored in the itunes directory, itunes will not tell you how it is stored, or even where it is stored.

b33k34
2008-03-08, 09:08
> Will someone from SD please explain this?
Most likely you only see the artwork files you did _not_ download using iTunes.
[color=blue]
There are tools out there to export that artwork to regular files. But AFAIK they just dump everything in one folder and you'd have to sort the resulting collection of artwork files manually. Consequently you might be better off downloading those files yourself while iTunes is ripping your files :-(.

Michael

If you're on Mac OS Doug's Scripts has an 'embed artwork' script that takes the images from the itc files and embeds them into the audio files. I've just run this on my 9000+ song iTunes collection and it seems to have worked - image files now appear for nearly all of my albums in SC. Stragely, the ones that seem to be missing appear to be albums where i've manually added the image file (is SC fussy about image size/shape/resolution/format for embedded files?). I've got one odd collection where the discs that iTunes downloaded automatically work but the additional disc where i copied it manually (from one of the downloaded files) doesn't

Presumably this means this could be implemented directly in Slimserver at some point?

EnochLight
2008-03-08, 11:33
I stand corrected then. Only album artwork that one drags and drops himself into iTunes or artwork embedded in the files via an iTMS purchase shows up.

I never realized this, as 90% of my iTunes library is stuff that I ripped and dragged/dropped artwork into or purchased through iTMS, in which case it all shows up fine in SC and the new Controller.

Hopefully this bug can be fixed eventually...

atkinsonrr
2008-03-08, 13:26
If you're on Mac OS Doug's Scripts has an 'embed artwork' script that takes the images from the itc files and embeds them into the audio files. I've just run this on my 9000+ song iTunes collection and it seems to have worked - image files now appear for nearly all of my albums in SC.

I am on MAC OS 10.3.9 most of my artwork has been downloaded automatically from iTunes Music Store. I am glad to hear of your success! My problem is I have never used scripts and when I read Doug's notes on this, instead of being enlightened, I was dumbfounded. So, I tried the automatic "FIXTUNES" for Mac, but it didn't seem to do anything, nada, nothing. Would anyone be willing to post a step-by-step on how to implement Doug's script? I (and perhaps others) would REALLY appreciate it!

b33k34
2008-03-09, 04:21
I am on MAC OS 10.3.9 most of my artwork has been downloaded automatically from iTunes Music Store. I am glad to hear of your success! My problem is I have never used scripts and when I read Doug's notes on this, instead of being enlightened, I was dumbfounded. So, I tried the automatic "FIXTUNES" for Mac, but it didn't seem to do anything, nada, nothing. Would anyone be willing to post a step-by-step on how to implement Doug's script? I (and perhaps others) would REALLY appreciate it!

the embed artwork script comes with an installer so it's just like adding any other application to the Mac. I'm running 'add artwork to album folder' as we speak (on a copy of my music collection, to see if that's enough to get art in Slimserver - as it will have less impact on total library size). That script i dragged into user/library/itunes/scripts. Both are then run by highlighting the files you want in itunes and running the script from the scripts menu (a stylised 's' in iTunes)

egd
2008-03-09, 04:48
Hopefully this bug can be fixed eventually...Not so sure it is a bug per se, more another example of how Apple go out of their way to make it difficult to interact with their products.

If you're looking to extract album art out of your iTunes library, this may come in handy: Easy program that can 1) extract all your album art from iTunes and 2) create web displays of your music library @ http://sourceforge.net/projects/iaae

Having purchased a iPod Touch in the last few weeks I have to say that whilst I'm very happy with the hardware, the manner in which you are initially forced to interact with it (via iTunes) is enough to be the final straw for me. Until they stop obfuscating everything and deliberately making things difficult from an end-user point of view there is no way in hell I'll buy another Apple product, I don't care how "cool" it may be.

b33k34
2008-03-09, 06:06
Not so sure it is a bug per se, more another example of how Apple go out of their way to make it difficult to interact with their products.

Having purchased a iPod Touch in the last few weeks I have to say that whilst I'm very happy with the hardware, the manner in which you are initially forced to interact with it (via iTunes) is enough to be the final straw for me. Until they stop obfuscating everything and deliberately making things difficult from an end-user point of view there is no way in hell I'll buy another Apple product, I don't care how "cool" it may be.

Having owned both ipods and other players i think that's a bit unfair. Apple sell a complete, simple, user experience and the out-of-the-box experience with iTunes is great - the rip/download art/organise library in sensible folders all works really well. Integration with podcasts is painless - even to auto deletion of stuff you've listened to. What *most* end users want is simplicity itself and that's why it sells.

I'll admit to being puzzled by their artwork approach - it seems needlessly complicated - but using iTunes and an iPod it works seamlessly with no user input required for 95% of my library

egd
2008-03-09, 07:49
...but using iTunes and an iPod it works seamlessly with no user input required for 95% of my library The iPod Touch is my 2nd iPod also, but it will be my last. I don't see why I should HAVE to use iTunes - it is nothing but bloatware that facilitates Apple's lockdown and DRM. To top it off, the latest version wouldn't even run correctly on w2k3 or my XP Virtual Machine. There isn't even a version available for my OS of choice and whilst others go out of their way to develop software to eliminate the need for iTunes eg vPod, Apple promptly goes out of its way to break the tools, much the same as Microsoft does. Enough said, and apologies for hijacking the thread.

Mitch Harding
2008-03-09, 10:17
Album Cover Art Downloader worked for me in Ubuntu. It took a little bit of
research to get it to work (thank you, google!), but I eventually got it
running. I still had to end up going album by album and select the art I
wanted, since it wasn't very reliable about picking the correct art, but
still it made the entire process much faster than it would otherwise have
been, Thanks for the recommendation.

On Fri, Mar 7, 2008 at 3:44 PM, Mitch Harding <mitcharf (AT) gmail (DOT) com> wrote:

> Thanks for the tip. I'll give it a try this weekend. I still think
> I'd prefer the SBC to have an "omit album art" setting, both for
> people without album art and for people who want to fit more songs on
> the screen, but I am curious to see how it looks with the album art.
>
> On Fri, Mar 7, 2008 at 1:16 PM, Mark Lanctot
> <Mark.Lanctot.35x2rb1204917602 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
> >
> > Mitch Harding;276479 Wrote:
> > > Any album art download suggestions for Linux users (not for iTunes,
> of
> > > course)? I want to see how they look on my new SBC.
> >
> > Try Album Cover Art Downloader - it's abandonware though and Google
> > won't find anything but a forum member is hosting it:
> >
> > http://www.unrealvoodoo.org/hiteck/projects/albumart/
> >
> > ...I notice Google will find it (3rd hit) when you enter "Album Cover
> > Art Downloader Linux" as a search term. Omit the "Linux" and you're
> > flooded with all those Windows software download "collection" sites.
> >
> >
> > --
> > Mark Lanctot
> >
> ------------------------------------------------------------------------
> > Mark Lanctot's Profile:
> http://forums.slimdevices.com/member.php?userid=2071
> >
> >
> > View this thread: http://forums.slimdevices.com/showthread.php?t=44344
> >
> >

MuckleEck
2008-03-09, 10:35
Thanks for the info!
I'm using Windows XP.
If you have the time could you run me through the setup procedure for converting my music from Apple Lossless to FLAC via either of the methods you mentioned (foobar2000 or dBpoweramp), keeping it as simple and detailed (step by step)
as possible:)

geoh,

I have sent you a pm

GRC
2008-03-09, 12:24
This is simply not true. Any album artwork in iTunes should show up fine in SqueezeCenter as well as on your Controller - it works fine on mine.
. . .

Are you syncing your iTunes Library XML file with SqueezeCenter or are you just pointing SqueezeCenter to a folder where all of your iTunes music is stored?

1. Simply IS true for SC 6.5.4 and SC7 with SB3 so nah-nah-na-nah-nah :-)

2. I have specific paths declared to XML file and music folder - doesn't help.

3. My personal experience is that artwork automatically downloaded by iTunes (I don't buy iTunes music - just use it to organise independently ripped / downloaded files) is the problem. If it shows up in iTunes but not in SC then a simple - albeit longwinded - ruse is to copy the album art image from the bottom-right pane; select all the tracks on the album and right-click (sorry Mac users) to select <Clear Downloaded Artwork>; then paste the copied image back against all the tracks. I understand this tags each track with the artwork which SC7 then sees. Do this gradually over a period of time, preferably with some nice toons playing and a glass of red wine to hand.

Thank you and good night.

Graeme

DeWayne
2008-03-09, 14:04
geoh,

To get artwork visible use MP3tag (if you are running a PC) and have it download artwork as folder.jpg to each separate album folder. SqueezeCenter can then read these folder.jpg files.



I have downloaded MP3tag. I have looked all through the program and I can't find a way to make it download album art. Am I missing something?

Thanks!

MuckleEck
2008-03-09, 14:33
I have downloaded MP3tag. I have looked all through the program and I can't find a way to make it download album art. Am I missing something?

Thanks!

No you are not missing anything, it is a fairly "manual" process with MP3tag, select all tracks from an album, then select tag sources, amazon.com or .de depending on your fancy it will then provide some options to access the webpage for that album in Amazon then you need to copy/paste the cover over to the relevant folder.

I was happy to do it this way, slow but sure for those albums that did bot have cver art, I was also doing a lot of re-tagging (my collection is predominantly classical)

Alternatively try Album Art Aggregator (http://team.thenexusnet.com/nexus/AAA/) haven't tried it but may do more of a batch job.

Geoh
2008-03-11, 10:23
1. Simply IS true for SC 6.5.4 and SC7 with SB3 so nah-nah-na-nah-nah :-)

2. I have specific paths declared to XML file and music folder - doesn't help.

3. My personal experience is that artwork automatically downloaded by iTunes (I don't buy iTunes music - just use it to organise independently ripped / downloaded files) is the problem. If it shows up in iTunes but not in SC then a simple - albeit longwinded - ruse is to copy the album art image from the bottom-right pane; select all the tracks on the album and right-click (sorry Mac users) to select <Clear Downloaded Artwork>; then paste the copied image back against all the tracks. I understand this tags each track with the artwork which SC7 then sees. Do this gradually over a period of time, preferably with some nice toons playing and a glass of red wine to hand.

Thank you and good night.

Graeme

"copy the album art image from the bottom-right pane"
Could you explain this comment?
Bottom right pane of what?
thx

water
2008-03-16, 00:58
If you're on Mac OS Doug's Scripts has an 'embed artwork' script that takes the images from the itc files and embeds them into the audio files. I've just run this on my 9000+ song iTunes collection and it seems to have worked - image files now appear for nearly all of my albums in SC. Stragely, the ones that seem to be missing appear to be albums where i've manually added the image file (is SC fussy about image size/shape/resolution/format for embedded files?). I've got one odd collection where the discs that iTunes downloaded automatically work but the additional disc where i copied it manually (from one of the downloaded files) doesn't

Presumably this means this could be implemented directly in Slimserver at some point?

I canjont get into Doug's Scripts, does anyone know of an alternative download?

:water

Amp_Fan
2008-03-22, 09:12
I was having the same problem with SC7 and album artwork, and I did what was suggested. I used iTunes "download album artwork". Then, for EVERY album (use album view for ease) I started one song (option to show album artwork on). The album art shows up in a pane in the lower left (Windows XP). I right click on the pane and select copy. I then select all songs in the album and select "get info" There is a pane in the get info "info" section that I right click and select paste. Then select OK, and it copies the artwork to each tag in the album, and it shows up in SC7.

This also works for artwork found on Amazon or elsewhere on the Internet. I had to search high and low for some album covers with Google. Others, I resorted to shooting myself, and photoshopping down to 500x500 pixels and dragging into the artwork pane in get info. However, I now have every CD and digitized vinyl album with artwork.

mortenb
2008-03-24, 00:52
Had the same problem:
Amarok has this feature download image from amazon, or specify a file. It is then saved in the id3-tag somewhere.
It does not show up, there is no *.jpg file in the folder. but SC7 shows it just fine. I believe it to be embedded, because it works on my creative as well.

I do not like the idea of calling all artwork folder.jpg, it is so easy to overwrite, and artist-album.jpg takes too long.

andlauer
2008-03-24, 06:46
Hello,

Here is a javascript that copies cover art from iTunes to an image in the album folder. Works on Windows.

Enjoy! JC.

var artwork;
var artworks;
var extensions;
var file;
var format;
var location;
var name;
var t;
var trackcount;
var track;
var tracks;

name = 'cover';

extensions = new Array(4);
extensions[1] = 'jpg';
extensions[2] = 'bmp';
extensions[3] = 'png';

tracks = WScript.CreateObject("iTunes.Application").LibraryPlaylist.Tracks;
trackcount = tracks.count;
for (t = 1;t <= trackcount; t++) {
try {
track = tracks.item(t);
if (track.Kind == 1) {
artworks = track.Artwork;
if (artworks.count > 0) {
artwork = artworks.item(1);
format = artwork.Format;
if (format != 0) {
location = track.location;
file = location.substring(0, location.lastIndexOf('\\') + 1) + name + '.' + extensions[format];
artwork.SaveArtworkToFile(file);
}
}
}
}
catch (exception) {
WScript.echo("Problem with " + track.Name);
}
}

jsmathers
2008-03-24, 13:17
I also use a java script to save iTunes artwork to a file. Google for "iTunes COM SDK" for more info. My script basically does the same as andlauer's, but I added a few options you can set. The bOptIgnoreBadArtworkComment option allows you to add a "Don't use iTunes artwork" comment to the mp3 if the iTunes artwork is wrong or low resolution and it won't save the artwork for that file. Of course you could also just clear the bad downloaded artwork in iTunes, but then you'll have to do this again if you ever rescan your iTunes library. The other options are pretty self-explanatory.

Download the attached text file and rename it to "SaveItunesArtworkToFile.js". Make sure iTunes is open and double-click the js file to run the script. Here is the code from the script for reference...
-----------------
// Script options
var bOptSaveEmbeddedArtwork = false;
var bOptIgnoreBadArtworkComment = false;
var bOptOverwriteArtworkFile = false;
var bOptCreateArtworkThumbs = false;

var iTunesApp = WScript.CreateObject("iTunes.Application");

var tracks = iTunesApp.LibraryPlaylist.Tracks;

// NOTE: Change to "Test" playlist for testing
//var tracks = iTunesApp.LibrarySource.Playlists.ItemByName("Test").Tracks;

// NOTE: Instead of looking for "Don't use iTunes artwork" comment, can also create smart playlist
//var tracks = iTunesApp.LibrarySource.Playlists.ItemByName("Use iTunes Artwork").Tracks;

var numTracks = tracks.Count;
var currTrack;
var count = 0;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var shell = new ActiveXObject("WScript.Shell");

var albumArray = new Array();

for (var i = 1; i <= numTracks; i++)
{
currTrack = tracks.Item(i);
var album = currTrack.Album;

if ((album != undefined) && (album != ""))
if (albumArray[album] == undefined)
albumArray[album] = currTrack;
}

for (var albumNameKey in albumArray)
{
try
{
currTrack = albumArray[albumNameKey];

if (currTrack.Artwork.Count == 0)
continue;

var artItem = currTrack.Artwork.Item(1);

if (!bOptSaveEmbeddedArtwork)
if (!artItem.IsDownloadedArtwork)
continue;

// Look for a comment indicating if we should NOT save artwork
// (separate multiple comments with a semi-colon)
if (!bOptIgnoreBadArtworkComment)
{
var bSaveArtwork = true;
var comments = currTrack.Comment.split(";");
for (var j = 0; j < comments.length; j++)
if (comments[j] == "Don't use iTunes artwork")
{
bSaveArtwork = false;
break;
}

if (!bSaveArtwork)
continue;
}

var type;
if (artItem.Format == 0)
continue;
else if (artItem.Format == 1)
type = "jpg";
else if(artItem.Format == 2)
type = "png";
else if(artItem.Format == 3)
type = "bmp";
else
continue;

// Save artwork in same directory as track
var loc = currTrack.Location;
var parentFolder = loc.substr(0,loc.lastIndexOf("\\")) + "\\";
var artworkPath = parentFolder + "cover." + type;

// Don't save artwork if already exists
if (!bOptOverwriteArtworkFile)
if (fso.FileExists(artworkPath))
continue;

artItem.SaveArtworkToFile(artworkPath);
count++;

// Create artwork thumbnails using ImageMagick convert (www.imagemagick.org)
if (bOptCreateArtworkThumbs)
{
shell.Run("C:\\convert.exe -thumbnail 300x300 \"" + artworkPath + "\" \"" + parentFolder + "cover_sm." + type + "\"", 0);
shell.Run("C:\\convert.exe -thumbnail 150x150 \"" + artworkPath + "\" \"" + parentFolder + "cover_tn2." + type + "\"", 0);
shell.Run("C:\\convert.exe -thumbnail 100x100 \"" + artworkPath + "\" \"" + parentFolder + "cover_tn." + type + "\"", 0);
}
}
catch(er)
{
WScript.Echo(er);
}
}

WScript.Echo ("Saved artwork for " + count + " tracks.");

grrman
2008-03-24, 21:02
So what are the settings to sync the .xml file? I've corresponded with Logitech who say the album artwork issue in iTunes and SC7 is a known bug that only Apple can address. I can't seem to find this setting, and the only artwork that shows up on my controller is the artwork I've scanned and saved.

jdbaker
2008-03-25, 09:51
jsmathers,

Thank you for the script, I had pretty much given up on getting my iTunes artwork to show up in SC, (the copy/paste fix is so slow it really is not an option) I followed your instructions and bingo there they are. Sweet.

jdb

craigf
2008-03-25, 22:38
Download the attached text file and rename it to "SaveItunesArtworkToFile.js". Make sure iTunes is open and double-click the js file to run the script. Here is the code from the script for reference...
<snip>

I'm not sure what I'm doing incorrectly, but when I double-click the .js file on the Mac's desktop, all I see is Safari giving me one bounce in the launcher bar (forgive my incorrect OS X terminology; I'm a Windows guy...just have a Mac for media duty) and nothing else seems to happen. iTunes is running when I do this. What am I missing? TIA.

markwm
2008-03-27, 09:54
Hello,

Here is a javascript that copies cover art from iTunes to an image in the album folder. Works on Windows.

Enjoy! JC.

var artwork;
var artworks;
var extensions;
var file;
var format;
var location;
var name;
var t;
var trackcount;
var track;
var tracks;

name = 'cover';

extensions = new Array(4);
extensions[1] = 'jpg';
extensions[2] = 'bmp';
extensions[3] = 'png';

tracks = WScript.CreateObject("iTunes.Application").LibraryPlaylist.Tracks;
trackcount = tracks.count;
for (t = 1;t <= trackcount; t++) {
try {
track = tracks.item(t);
if (track.Kind == 1) {
artworks = track.Artwork;
if (artworks.count > 0) {
artwork = artworks.item(1);
format = artwork.Format;
if (format != 0) {
location = track.location;
file = location.substring(0, location.lastIndexOf('\\') + 1) + name + '.' + extensions[format];
artwork.SaveArtworkToFile(file);
}
}
}
}
catch (exception) {
WScript.echo("Problem with " + track.Name);
}
}

How exactly do you get this to work? I saved it into a script.js file but when I open it simply gave an error

andlauer
2008-03-27, 13:17
To markwm:

Well, this javascript should run along iTunes on a Windows system. Please provide me with information about the operating system, iTunes and the message you get.

JC

Jakeman
2008-03-28, 06:52
andlauer, Thankyou for that script. Brought the artwork to life on my Duet.

craigf
2008-03-28, 14:26
Do any of these scripts work on a Mac?

Update: OK, so I manually copied several album artwork files into the directory structure. After a bit of manual clicking on every album with artwork, they show up in SC7. But no dice on the remote no matter how many times I turn it off and back on again. What's the secret?

herts101
2008-03-28, 17:10
Just used the jsmathers script and it works really well. Thank you.

I'd like to change one thing about it if it is possible.

I have two directories of files:
1. A directory of mp3 files which I manage through itunes, and which (mostly) have the itunes downloaded cover art.
2. A directory of flac files

Both directoties (mp3 and flac) have the same structure beneath them (artist\album).

I'd like to extract the itunes cover art from the mp3 directory and save it as cover.jpg into the flac directory rather than in the mp3 directory. This way I figure it will be picked up by Squeezecentre which scans the flac files.

It looks like I could do this with this script but don't really want to change anything myself for want of destroying my files.

Could you post an updated file that does this?

Thank you very much.

Peter.

markwm
2008-03-28, 19:42
To markwm:

Well, this javascript should run along iTunes on a Windows system. Please provide me with information about the operating system, iTunes and the message you get.

JC

it was a compile error. But am I doing it right? Paste the script into a text file and name it file.js and then double click the file.

andlauer
2008-03-29, 06:53
For some reason "LibraryPlaylist.Tracks;" in line 20 has been quoted "Library Playlist.Tracks;" in this forum.

Please remove the erroneous space to obtain "LibraryPlaylist.Tracks;" and it should work fine.

Enjoy! JC

Rar
2008-03-29, 07:44
I've tried both manually and using AlbumArtAg to put cover art in all folders. They are named cover.jpg yet northing shows up in SqC og the controller.

What am I doing wrong?

blind1
2008-03-29, 09:06
Thanks very much jsmathers. This script worked a treat; just short of 1000 albums in less than 5 minutes. You're a star :)

Rar
2008-03-29, 10:09
Strange... Some albums start showing up. I SqC after you double click them... The controller is slower. Some albums show up under artist but not under albums. Hope it's just very slow updating..

jsmathers
2008-03-29, 10:14
Peter,

This new script should do what you want... just change the flacBaseFolder variable to point to the your FLAC folder.

Alternatively you could just use a file comparison program (such as Beyond Compare) and do a differences of just jpg files in your iTunes Music folder and FLAC folder. Then sync the new jpgs to your FLAC folder. I use Beyond Compare a lot for syncing different files between my iTunes and FLAC directories.

Also, as far as testing any changes you want to make to the script... create a playlist in iTunes called "Test" and then change the bUseTestPlaylist variable in the script to true. The script will only work on the tracks in the Test playlist.

- Jason


Just used the jsmathers script and it works really well. Thank you.

I'd like to change one thing about it if it is possible.

I have two directories of files:
1. A directory of mp3 files which I manage through itunes, and which (mostly) have the itunes downloaded cover art.
2. A directory of flac files

Both directoties (mp3 and flac) have the same structure beneath them (artist\album).

I'd like to extract the itunes cover art from the mp3 directory and save it as cover.jpg into the flac directory rather than in the mp3 directory. This way I figure it will be picked up by Squeezecentre which scans the flac files.

It looks like I could do this with this script but don't really want to change anything myself for want of destroying my files.

Could you post an updated file that does this?

Thank you very much.

Peter.

Rar
2008-03-29, 10:18
All updated. It works. For less teck savy users i reccommend http://team.thenexusnet.com/nexus/AAA/

herts101
2008-03-29, 11:57
That's fantastic.

Thanks Jason - saved me absolutely loads of time.

I'll check out Beyond Compare too.

Peter.

craigf
2008-03-29, 14:33
OK, so I manually copied several album artwork files into the directory structure. After a bit of manual clicking on every album with artwork, they show up in SC7. But no dice on the remote no matter how many times I turn it off and back on again. What's the secret?

To answer my own question, apparently I need to purge the existing music database and then have SC7 rescan my entire iTunes library to get all the newly added artwork to show up both in SC7 and on the Controller.

That DOES work, but do I seriously have to force a complete rescan every time I add a bit of album art? If that's the case, I'd think SC7 should have a bit more intelligence in its scanning algorithms.

kbuzz
2008-03-29, 18:46
Try Album Cover Art Downloader - it's abandonware though and Google won't find anything but a forum member is hosting it:

http://www.unrealvoodoo.org/hiteck/projects/albumart/

...I notice Google will find it (3rd hit) when you enter "Album Cover Art Downloader Linux" as a search term. Omit the "Linux" and you're flooded with all those Windows software download "collection" sites.

does it work for mac?

Rar
2008-03-30, 09:37
Same experience. Total rescan everytime you add something. Bug.

craigf
2008-03-30, 18:28
Same experience. Total rescan everytime you add something. Bug.

Actually, I may have found a workaround for times when you add artwork for just a few albums (using the "add 'cover.jpg' artwork file in the album directory" method).

Step 1) Start up the SC7 web interface and go browse by album. You'll see the album(s) listed without the new artwork. Select the album to bring up its track listing. You should then see the new artwork on the track listing page. Going back to the album list, the newly added artwork should now show up there as well.

Step 2) Wait a hella long time for the SBC to update its internal database.

Step 3) At some point in the future (I had to wait overnight), the SBC will then show the new artwork without you having to initiate a rescan.

Now, I wouldn't want to have to manually call up the artwork this way for dozens, or hundreds, of albums, but for a few, it's fine (as long as you don't mind waiting on the SBC to update itself).

If anyone with a better (i.e., more thorough/technical) understanding of how the Squeezebox system works can correct (or explain) this, please let us know. Thanks.

Rar
2008-04-02, 13:29
Actually, I may have found a workaround for times when you add artwork for just a few albums (using the "add 'cover.jpg' artwork file in the album directory" method).

S

I learned that too :-) Yeah, it should probably be included in next update, the idea of a wifi remote beeing instantaniously!

daverich4
2008-04-03, 17:39
I tried the various javascript solutions posted here for getting ITunes artwork to show on the controller but they seem to be PC only and I'm on a Mac. At the beginning of this thread was a suggestion to try the 'embed artwork' script at Doug's Scripts. It took about 5 minutes to download and install and just another minute to test on a single CD. It's works really well. I told it to do the rest of my cd's (a little over 400) and went to work. When I got home all of the album covers displayed properly on my controller. It looks like when I RIP additional CD's I just have to select them and run the script on just the new ones. Nice.

-dave-

casonbang
2008-04-08, 22:49
After my first scan, SC7 was only displaying a few of my embedded artworks. Rescan didn't fix it.

Reading this thread prompted me to do a clear/full scan and that worked!

Also, it appears that new embedded artwork IS found with "scan for new and changed".

grrman
2008-04-09, 15:46
Anyone found problems with artwork thumbnails disappearing on the controller after upgrading to 7.0.1? I've had a few "disappear" from being displayed on the controller, but acting similar to what craigf describes in an earlier post (they display in SC when clicking the cover and display track list, etc). They will display in the "now Playing" view. Problem is, they haven't come back after a rescan or waiting for the thing to update itself. I didn't change any of the artwork prior to the firmware upgrade. Really stinks cause everything was working so sweet...

sc53
2008-04-09, 17:27
To whoever asked about finding album art on a Mac--I use Cover Scout which cost $10. Very useful tool and it has found all my missing covers and relocated all album art from iTunes into the XML file.

AndrewFG
2008-10-05, 23:04
Hello,

Here is a javascript that copies cover art from iTunes to an image in the album folder. Works on Windows.

Enjoy! JC.



Or alternatively have a look at this thread: http://forums.slimdevices.com/showthread.php?t=53413

DeWayne
2009-12-13, 09:27
I also use a java script to save iTunes artwork to a file. Google for "iTunes COM SDK" for more info. My script basically does the same as andlauer's, but I added a few options you can set. The bOptIgnoreBadArtworkComment option allows you to add a "Don't use iTunes artwork" comment to the mp3 if the iTunes artwork is wrong or low resolution and it won't save the artwork for that file. Of course you could also just clear the bad downloaded artwork in iTunes, but then you'll have to do this again if you ever rescan your iTunes library. The other options are pretty self-explanatory.

Download the attached text file and rename it to "SaveItunesArtworkToFile.js". Make sure iTunes is open and double-click the js file to run the script. Here is the code from the script for reference...
-----------------
// Script options
var bOptSaveEmbeddedArtwork = false;
var bOptIgnoreBadArtworkComment = false;
var bOptOverwriteArtworkFile = false;
var bOptCreateArtworkThumbs = false;

var iTunesApp = WScript.CreateObject("iTunes.Application");

var tracks = iTunesApp.LibraryPlaylist.Tracks;

// NOTE: Change to "Test" playlist for testing
//var tracks = iTunesApp.LibrarySource.Playlists.ItemByName("Test").Tracks;

// NOTE: Instead of looking for "Don't use iTunes artwork" comment, can also create smart playlist
//var tracks = iTunesApp.LibrarySource.Playlists.ItemByName("Use iTunes Artwork").Tracks;

var numTracks = tracks.Count;
var currTrack;
var count = 0;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var shell = new ActiveXObject("WScript.Shell");

var albumArray = new Array();

for (var i = 1; i <= numTracks; i++)
{
currTrack = tracks.Item(i);
var album = currTrack.Album;

if ((album != undefined) && (album != ""))
if (albumArray[album] == undefined)
albumArray[album] = currTrack;
}

for (var albumNameKey in albumArray)
{
try
{
currTrack = albumArray[albumNameKey];

if (currTrack.Artwork.Count == 0)
continue;

var artItem = currTrack.Artwork.Item(1);

if (!bOptSaveEmbeddedArtwork)
if (!artItem.IsDownloadedArtwork)
continue;

// Look for a comment indicating if we should NOT save artwork
// (separate multiple comments with a semi-colon)
if (!bOptIgnoreBadArtworkComment)
{
var bSaveArtwork = true;
var comments = currTrack.Comment.split(";");
for (var j = 0; j < comments.length; j++)
if (comments[j] == "Don't use iTunes artwork")
{
bSaveArtwork = false;
break;
}

if (!bSaveArtwork)
continue;
}

var type;
if (artItem.Format == 0)
continue;
else if (artItem.Format == 1)
type = "jpg";
else if(artItem.Format == 2)
type = "png";
else if(artItem.Format == 3)
type = "bmp";
else
continue;

// Save artwork in same directory as track
var loc = currTrack.Location;
var parentFolder = loc.substr(0,loc.lastIndexOf("\\")) + "\\";
var artworkPath = parentFolder + "cover." + type;

// Don't save artwork if already exists
if (!bOptOverwriteArtworkFile)
if (fso.FileExists(artworkPath))
continue;

artItem.SaveArtworkToFile(artworkPath);
count++;

// Create artwork thumbnails using ImageMagick convert (www.imagemagick.org)
if (bOptCreateArtworkThumbs)
{
shell.Run("C:\\convert.exe -thumbnail 300x300 \"" + artworkPath + "\" \"" + parentFolder + "cover_sm." + type + "\"", 0);
shell.Run("C:\\convert.exe -thumbnail 150x150 \"" + artworkPath + "\" \"" + parentFolder + "cover_tn2." + type + "\"", 0);
shell.Run("C:\\convert.exe -thumbnail 100x100 \"" + artworkPath + "\" \"" + parentFolder + "cover_tn." + type + "\"", 0);
}
}
catch(er)
{
WScript.Echo(er);
}
}

WScript.Echo ("Saved artwork for " + count + " tracks.");

This worked great to put the art work into my mp3 folder but is there a way for it to also copy them to my identical flac folder?

Thanks, DeWayne

instaud
2009-12-16, 03:33
Actually, I may have found a workaround for times when you add artwork for just a few albums (using the "add 'cover.jpg' artwork file in the album directory" method).


Here's how I do this:

I came to the conlusion that SC, when scanning for "new and changed music", adds new artwork only if the file date of "cover.jpg" is equal or newer than the newest audio file AND/OR the folder it's in. This might explain the problems some people have when adding new albums with covers sometimes not showing up. On the other hand, a "rescan everything" adds all artwork, independent from file dates.

The other interesting fact is that once SC has an album with a recognised "cover.jpg", you can replace that file with another image, and SC will show that new image automatically, with merely a browser refresh. (Note: only works with bullet 3. below.)

So, based on these two characteristics, you can update artwork without a "rescan everything" by preparing your folders like this:

1. Put all artwork you have as "cover.jpg" in their respective folders (surely you've done that already).
2. For those folders you don't have artwork, put a template (dummy) "cover.jpg" in the folder. It can be any image; I use the original SC image as found in "HTML/Default/html/images/cover.png", but necessarily converted to JPEG.
3. In "Settings > Performance", set "Do not pre-cache artwork".
4. Do a "rescan everything", one last time ;-) .

From now on, if you add new music, include a template "cover.jpg" if you don't have the real cover image at the moment. If you have it, make sure its file date is as explained above. If you scan or download covers for albums already in SC, just replace the corresponding template "cover.jpg", and you're done.

5. Performance recommendations:

5a. In "Settings > Performance", set "Resize artwork".
5b. Resize all your covers and the template to the same size as defined in "Settings > Interface > Thumbnail Size"; keep the original image with another file name around, just in case. (Disadvantage: no extra large cover display in SC anymore.)
5c. Instead of copying the template "cover.jpg" into every folder it is needed, create links to a single instance of that file (symbolic link under Linux). This reduces disk access.

Last note: as a long time Linux user, I am typically lazy and created a simple bash script to maintain my cover links. I keep all resized covers in a single folder, each having the same name as the corresponding album folder. The script links "cover.jpg" inside the album folders to the real image if it exists, or to the template if not.

Regards,
Arnd