# Adding file names to exported cover art

**URL:** <https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115>\
**Category:** Support\
**Created:** [November 23, 2026, 4:52pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115 "2026-11-23T16:52:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 23, 2026, 4:52pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/1 "2026-11-23T16:52:54Z")

</div>

I just learned how to export cover art and for me that's saying something. What I would like to know is- can you export the file name with the cover art? now to be honest I am not a coder so right now the string I have to export the cover art is `L:\coverart\filename` because I'm extracting the cover art from my movies and I'm guessing that the file name would hold the cover art. I would like to export the cover art with the movie name. Right now after extraction the name of each cover is "filename 1", "filename 2" etc.

---

<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 23, 2026, 4:58pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/2 "2026-11-23T16:58:36Z")

</div>

> [@xpac5896a](#):
>
> the string I have to export the cover art is `L:\coverart\filename`

If you want to use the variable filename of the source file, then try  
`L:\coverart\%_filename%`  
If you have several embedded pictures, then see if you can distinguish them with an added `%_cover_type%`.  
`L:\coverart\%_filename%_%_cover_type%`  
otherwise different covers will get an index number as there cannot be more than 1 file with the same name.

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 25, 2026, 12:57am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/3 "2026-11-25T00:57:00Z")

</div>

Actually what I'd like to do is pull the name of the file the cover art belongs to. In this particular case there is only one cover where my mp3s in most cases have two. I don't know if it's even possible to pull the name. I have already pulled the covers off with no problem, it's just the name of the file along with the cover art that I'm interested in.

---

<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 25, 2026, 7:35am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/4 "2026-11-25T07:35:10Z")

</div>

> [@xpac5896a](#):
>
> the name of the file the cover art belongs to

Have you tried my suggestion?

> [@xpac5896a](#):
>
> one cover where my mp3s in most cases have two

You cannot have 2 files with the same name. So you would have to find a way to distinguish these files. One way would be to add the cover type. But if this is also the same for all pictures, then you will end up with an index number.

---

<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:** [November 25, 2026, 7:45am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/5 "2026-11-25T07:45:03Z")

</div>

> [@xpac5896a](#):
>
> I just learned how to export cover art and for me that's saying something.

Do you do it with an action of the type "Export covers to file" or do you do it manually with a right mouse click on the cover-field in the tag-panel?

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 28, 2026, 12:26am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/6 "2026-11-28T00:26:11Z")

</div>

The action I use is Quick I've tried the L:\coverart\%\_filename% and all I get is (1).jpg etc. what I'm asking for Is the cover art followed by the files name ie: COVER ART + Girls Just Wanna To Have Fun. where cover art would be the picture of the record and Girls just Wanna have fun would be the name of the record or the cover art. Like I said before I don't know if this is possible but there is no harm asking the question

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 28, 2026, 1:01am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/7 "2026-11-28T01:01:02Z")

</div>

Now I'm going to be a pain in the butt. When using L:coverart\%\_filename% when this is used for my mp3s it will pull both cover arts from each file. in other words In most of my mp3s I have two cover arts, the record and the album the song came from. In other words I have the cover art for the 45rpm record for the song and the the cover art for the album the song came from. Maybe I'm getting things confused but I'm thinking that one QUICK action can do both the only thing I want ia the main cover art and the name of the file it came from. is that possible?

---

<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:** [November 28, 2026, 7:08am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/8 "2026-11-28T07:08:31Z")

</div>

If you have multiple cover images in a tag, the export action will always export all of them. However, you can restrict the selection to a specific cover type. When you set up and define the action, you will see an option labeled "Export only covers of type," where you can specify a particular cover type.  
Naturally, this restriction only works if the cover type has actually been saved within the cover tag.  
In MP3tag, you can assign the following cover types by right-clicking on the cover image in the Tag Panel or the Extended Tag Panel:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/9/7/9744d3bf3ce1be883860f3a94b24af5e351bac1a.png)

---

<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 28, 2026, 8:36am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/9 "2026-11-28T08:36:53Z")

</div>

> [@xpac5896a](#):
>
> L:\coverart\%\_filename% and all I get is (1).jpg

Could you check again?  
The reference to `_FILENAME` should use the mp3-filename to create the picture file name.  
If you e.g. left out the underscore in front of FILENAME, then you reference a user-defined field which is probably not there so that you get an empty string.  
If functions do not work, it would be best to supply a screenshot of the applied function. SOmetimes it needs 4 eyes (or more) to spot the error.

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 29, 2026, 4:38am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/10 "2026-11-29T04:38:01Z")

</div>

Here is the info you requested. Again the action I'm using is Quick. The first is the result of the action, the second is the string I used and I threw in the action itself. Hopefully you can find the mistake.

 ![Result of Export](https://community.mp3tag.de/uploads/default/original/3X/2/0/20ccd031b5351586d046ad5877c6b1e612186289.jpeg)

 ![Export cover to file](https://community.mp3tag.de/uploads/default/original/3X/9/e/9e3a2d12a6a5430d0cab69594e844426b453b428.jpeg)

 ![Action](https://community.mp3tag.de/uploads/default/original/3X/a/c/ac640208edddb6e76a84ba62eff23b8b10054c6a.jpeg)

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [November 29, 2026, 4:40am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/11 "2026-11-29T04:40:29Z")

</div>

In the format string you have incorrectly typed %\_filemame% ( **m** ame) not the correct tag placeholder that should be %\_filename%

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [November 30, 2026, 6:38pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/12 "2026-11-30T18:38:40Z")

</div>

As far as spelling is concerned, sometimes my brain can't catch up with my fingers. I did correct the spelling however even though you are specifying the FRONT cover it's pulling BOTH front AND rear covers. It's also adding numbers to some of the results, is that normal or should there be something added to the action? If it pulls both covers and you have, lets say 5,000 songs and each song has 2 covers, you can do the math. Yes it's pulling the cover and the name but if you only want the front or 1st cover then that means there's something missing to the action.

 ![results](https://community.mp3tag.de/uploads/default/original/3X/0/9/09932a6235b0e8764f75fedd85840df7f9bd8c77.jpeg)

---

<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 30, 2026, 6:44pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/13 "2026-11-30T18:44:12Z")

</div>

> [@xpac5896a](#):
>
> even though you are specifying the FRONT cover it's pulling BOTH front AND rear covers

MP3tag can only tell the difference if you have set the type of one of the embedded pictures to be "Front Cover" and one to "Back Cover".  
If all embedded picture have the same type, then MP3tag cannot distinguish between them.

If you have set front & back, then the export for only front covers should work.  
Or you create a filename like already mentioned here:

> [@ohrenkino](#):
>
> If you have several embedded pictures, then see if you can distinguish them with an added `%_cover_type%`.  
> `L:\coverart\%_filename%_%_cover_type%`

There is no way to export only the

> [@xpac5896a](#):
>
> 1st cover

---

<div class="post-metadata">

**Author:** ![squonk57](https://community.mp3tag.de/user_avatar/community.mp3tag.de/squonk57/32/23812_2.png) [@squonk57](https://community.mp3tag.de/u/squonk57)\
**Post date:** [November 30, 2026, 7:23pm UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/14 "2026-11-30T19:23:52Z")

</div>

> [@xpac5896a](#):
>
> I did correct the spelling however even though you are specifying the FRONT cover it's pulling BOTH front AND rear covers.

Because you tagged them both as "Front Cover":

 ![image](https://community.mp3tag.de/uploads/default/original/3X/4/0/40d34894ec1fa2a666297533ee324a03a8d06d26.png)

There should only be one front cover image in each file. Right-click on the unwanted picture and change its type to Back Cover, Media (that would be appropriate for the scan of the center label), or something else that suits it.

Yes, that sucks for 5000 files, but as they say, hindsight is 20/20. You should have done that right away when you added the images. Now it is probably less work to just export them all and then delete the ones you don't want.

---

<div class="post-metadata">

**Author:** ![xpac5896a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/85f322/32.png) [@xpac5896a](https://community.mp3tag.de/u/xpac5896a)\
**Post date:** [December 1, 2026, 12:53am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/15 "2026-12-01T00:53:50Z")

</div>

squonk57 - Thanks for letting me know about about front and rear covers, never knew you had to do that. Now all I gotta do is go through 3500 mp3s and setting the front and rear covers. should be done around mid summer seeing as how I'm also ripping my movies and putting them on disc and OHRENKINO, your code doesn't distinguish between covers as I have all covers as front but now instead of adding numbers to the covers it actually puts the name on every cover, thanks. thanks for all your help, greatly appreciated.

---

<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:** [December 1, 2026, 5:30am UTC](https://community.mp3tag.de/t/adding-file-names-to-exported-cover-art/72115/16 "2026-12-01T05:30:52Z")

</div>

> [@xpac5896a](#):
>
> Now all I gotta do is go through 3500 mp3s and setting the front and rear covers

If there is some system in the names of the exported covers and you can identify them as front or back covers or other types (maybe the numbers added to them), you can reimport them to your Mp3s with an action of the type "Import Cover from files". In this action type you can define a format string for your cover-files including the path.

Before you have to delete the embedded covers.  
You should always import the front cover first so this cover type is the first in the row. Many players only show the first cover.

Test and when necessary modify this format strings according to you filenames and path  
For Front cover: `L:\coverart\%_filename%_front.jpg`  
For Back Cover `L:\coverart\%_filename%_front(1).jpg`

You should always test not with your original files but test-copies
