📜 ⬆️ ⬇️

About tasty and healthy artwork

It is no secret that the artwork has become an important part of Apple multimedia devices. And with the advent of CoverFlow, it even became somehow disreputable to have albums without covers.

It would seem that the idea is simple to ugliness: he added music, dragged the picture - that’s the artwork. And if you have a subscription to the iTunes Store, then you don’t even need to drag anything, they drag everything for you ... But no, in the real world, things are not so simple.

And all because iTunes has one nasty trait. He sometimes (when his head hurts, apparently, there is no other pattern found) likes to spoil the cache of pictures. As a result, funny effects appear. Personally, I came across these:
- in the cover flow the cover is visible, if the album is “aside”, when to choose it - instead of the cover there is a picture of Malevich.
- in the playback mode, again, the black square, there is not even a standard “note”.
- in playback mode, the picture is torn somewhere in the middle, then black.
At the same time, iTunes inside itself happily shows that everything is correct. He's good, he reads pictures from tags ...
')
In general, it all started with this.
At first I tried to delete cache files. I thought, suddenly iTunes will see it and regenerate them ... How naive! He doesn't care about our worldly concerns.

Well, the next step I wrote a script that connects via COM to iTunes, gets a playlist on the iPod and for each track, first deletes the artwork (saving to disk), and then installs it again. It worked ... but oh, very long. No wonder - he rewrote tags for each song twice!

The best solution was to write a utility, which would still do everything correctly and feng shui.

image

It's simple. The utility takes pictures from tags and recreates the cache for the ipod. Total, in a couple of minutes, the entire collection of covers will be restored.

Download the sample here: link

All devices are supported (in theory), but the utility was tested only on iPod Nano 2G and iPod Touch.
Works under Windows (XP / 2003 / Vista / 2008), for older systems (for example, Windows 2000) you can use the console interface. To work, you need .NET Framework 3.0 or higher (for the console version, 2.0 is enough).

It is interesting to get feedback.
And if specifically you have never had any problems with pictures, then I would like to know the secret :)

Source: https://habr.com/ru/post/40847/


All Articles