# INITIALKEY to COVERART (Traktor)

**URL:** <https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439>\
**Category:** Support\
**Created:** [November 19, 2016, 11:30pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439 "2016-11-19T23:30:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)\
**Post date:** [November 19, 2016, 11:30pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/1 "2016-11-19T23:30:47Z")

</div>

I'd like to show the Key a track is in as COVERART.  
The key is analyzed by [Mixed In Key](http://www.mixedinkey.com) which writes into the COMMENT-tag and INITIALKEY-tag of a MP3-file.

**[Traktor](https://www.native-instruments.com/en/products/traktor/dj-software/traktor-pro-2/) collection (Green lined is desired outcome):**  
😉

Something like:  
If INITIALKEY is equal to 1A, then embed C:\pictures\CoverArt-Key-1a.jpg

If INITIALKEY is not equal to 1A, 2A, 3A, 4A, 5A, 6A, 7A, 8A, 9A, 10A, 11A, 12A, 1B, 2B, 3B, 4B, 5B, 6B, 7B, 8B, 9B, 10B, 11B, 12B, then embed C:\pictures\CoverArt-Key-None.jpg

**Any ideas?**

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 20, 2016, 12:05pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/2 "2016-11-20T12:05:46Z")

</div>

The action of the type "Import cover from file" allows you to enter a format string.  
So you can enter more or less any combination of text constants and variables as you like to create a filename for the cover file.

E.g.  
Format string: C:\pictures\CoverArt-Key-%initialkey%.jpg  
should create a filename as you described it.

---

<div class="post-metadata">

**Author:** ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)\
**Post date:** [November 20, 2016, 1:54pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/3 "2016-11-20T13:54:20Z")

</div>

I don't want to create a filename for the cover file, I want the already excisting pictures, to be embedded in the mp3-files.  
Which one to embed, depends on the INITIALKEY-value of that mp3.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 20, 2016, 2:17pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/4 "2016-11-20T14:17:59Z")

</div>

> [@Bas Curtiz](#):
>
> I don't want to create a filename for the cover file, I want the already excisting pictures, to be embedded in the mp3-files.  
> Which one to embed, depends on the INITIALKEY-value of that mp3.

You are quite right. And nowhere in my reply ...

> [@](#):
>
> The action of the type "Import cover from file" allows you to enter a format string.  
> So you can enter more or less any combination of text constants and variables as you like to create a filename for the cover file.
> 
> E.g.  
> Format string: C:\pictures\CoverArt-Key-%initialkey%.jpg  
> should create a filename as you described it.

... did I suggest that you create a file.

Just to explain it in a different way:

In the action "Import cover from file" you need to create a filename to address the file you want to embed.  
I made a suggestion for the combination of text constants and variables which also includes the initialkey value.

---

<div class="post-metadata">

**Author:** ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)\
**Post date:** [November 20, 2016, 5:43pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/5 "2016-11-20T17:43:16Z")

</div>

Ohwow, brilliant in its simplicity.  
And even better... It works 😃

Thanks!

---

<div class="post-metadata">

**Author:** ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)\
**Post date:** [August 24, 2017, 8:10am UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/6 "2017-08-24T08:10:39Z")

</div>

**Update! 24-8-2017:**

Just to check if it still works and make it easier for u to use the script, hereby proof + values to copy/paste into Mp3tag:

 ![](http://i.imgur.com/DQWzScd.png)

- Select ACTIONS , Select NEW ACTION
- Give it a logical name, for ex. Key Cover Art
- Select ACTIONTYPE 'Import cover from file'
- FORMAT STRING: C:\Key-Cover-Arts-v2\CoverArt-Key-%initialkey%-v2.png  
(replace folder with where your pictures are saved)

**For the pics I've used, see:** [http://forum.djtechtools.com/showthread.ph...ll=1#post683994](http://forum.djtechtools.com/showthread.php?t=81518&p=683994&viewfull=1#post683994)

**Note:** Be sure to delete the Front covers in your files 1st, otherwise it adds a 2nd Front cover, that won't show up using Traktor.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [August 24, 2017, 9:46am UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/7 "2017-08-24T09:46:13Z")

</div>

> [@Bas Curtiz](#):
>
> **Note:** Be sure to delete the Front covers in your files 1st, otherwise it adds a 2nd Front cover, that won't show up using Traktor.

There is no need for this. You just have to activate "Delete existing coverart".

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/initialkey-to-coverart-traktor/18439/8 "2026-02-09T12:26:32Z")

</div>


