Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_covers - locates your images on disk (Read 116558 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_covers - locates your images on disk

This is a very simple plugin helps the users to teach foobar2000 where the images files should be load, it's implemented as a service, which supported by both default UI and Columns UI. As of 0.06, it fills up the following titleformat fields: %albumart_front%, %albumart_back%, %albumart_disc%, %albumart_artist%, %albumart_icon%. The user who want to use this component must put those fields in the settings (in the Display page).
It supports wildcard and title formatting, wildcards like "*\*\*.jpg" could be used.
Please see the screen shot, I think it's explain the usage clearly.

ChangeLog:
0.06
Changed: Renamed to foo_covers2 to get rid of the warning by foobar2000 1.0. The user should rename the configration file from foo_cover.dll.cfg to foo_cover2.dll.cfg to keep the settings.
Changed: Build with the new SDK (2010-01-19). The preference page has been updated (Apply/Cancel/OK).
Changed: It doesn't work as a album art reader as before. It only returns the image path by the titleformat fields.

0.05
Fixed: A bug (race condition) which causes foobar2000 crashes.

0.04
Added: Two options to prevent some tracks from using foo_covers (by checking URI schemes and file extensions).

0.03
Fixed: Title formatting doesn't work with the single track files.
Fixed: The configurations of artist images aren't saved.

0.02
Added: Artist images.

foo_covers2-0.06
screen shot (preferences page)

Sources (Git)

foo_covers - locates your images on disk

Reply #1
Looks excellent.
I'm missing options for tracks and artists, though.

foo_covers - locates your images on disk

Reply #2
Sweet, I don't know why there isn't something like this built in. Could you add a preview of the line you're on like the Playback State Formatting Display on the default ui settings?

foo_covers - locates your images on disk

Reply #3
can i get the link to the newest album art plugin? i cant find it anywhere

foo_covers - locates your images on disk

Reply #4
Looks excellent.
I'm missing options for tracks and artists, though.

Why? Do you know what's this plugin doing?

can i get the link to the newest album art plugin? i cant find it anywhere

The album art plugin is not related to this plugin. So far, only the out-of-box Default UI and Columns UI (NG Playlist and the ArtWork Panel) can take the advantage of this plugin (as I know).

foo_covers - locates your images on disk

Reply #5
Why? Do you know what's this plugin doing?

I don't know about track images, but support for artist.jpg was added in the latest version- it would be great to be able to specify where the artist image is too.

What happens when you have embedded artwork? Does this component override it, or will it still show up as normal?

foo_covers - locates your images on disk

Reply #6
Um, am I doing it wrong?  This seems like an excellent idea for a component but I cannot get it to work.

My artwork is named as %catalognumber%.jpg in the same folder as the album.

I added the line %catalognumber%.* to the "Front" section and did not get any art.
I added the line $replace(%path%,%filename_ext%,%catalognumber%).* to the "Front" section and did not get any art
I tried changing .* to .jpg and removing it completely and still did not get any art.

This is using the album art viewers included in DUI and CUI, as well as NGPlaylist.  I can, however, use the same formatting in the CUI settings and get art under the CUI components.

OnPoint: Album art viewers are now included both in the Default UI and Columns UI. I do not believe any stand-alone components are still in development.

foo_covers - locates your images on disk

Reply #7
I don't know about track images, but support for artist.jpg was added in the latest version- it would be great to be able to specify where the artist image is too.

What happens when you have embedded artwork? Does this component override it, or will it still show up as normal?

The artist images is the new feature in 0.9.6.5, but the latest SDK has been released last year. So... wait for the new SDK.
If you have embedded artwork, which has higher priority is undefined. (you can try)

Um, am I doing it wrong?  This seems like an excellent idea for a component but I cannot get it to work.

My artwork is named as %catalognumber%.jpg in the same folder as the album.

I added the line %catalognumber%.* to the "Front" section and did not get any art.
I added the line $replace(%path%,%filename_ext%,%catalognumber%).* to the "Front" section and did not get any art
I tried changing .* to .jpg and removing it completely and still did not get any art.

I think %catalognumber%.* or %catalognumber%* should work, but I don't know why it doesn't. (Maybe %catalognumber% isn't available everywhere?)
Could you try a single * ?

foo_covers - locates your images on disk

Reply #8
The artist images is the new feature in 0.9.6.5, but the latest SDK has been released last year. So... wait for the new SDK.

Code: [Select]
namespace album_art_ids {
    (...)
    //! Artist picture.
    static const GUID artist = { 0x9a654042, 0xacd1, 0x43f7, { 0xbf, 0xcf, 0xd3, 0xec, 0xf, 0xfe, 0x40, 0xfa } };
};
Microsoft Windows: We can't script here, this is bat country.

foo_covers - locates your images on disk

Reply #9
I think %catalognumber%.* or %catalognumber%* should work, but I don't know why it doesn't. (Maybe %catalognumber% isn't available everywhere?)
Could you try a single * ?


After further experimentation:
*  - Worked
*.* - Worked
%catalognumber% - Does NOT work.
%catalognumber%* - Worked
%catalognumber%.* - Does NOT work.
%catalognumber%.jpg - Does NOT work.

I guess I'll just use a single * as a generic solution until I need something more refined.  Also, I had to restart foobar after changing the source for it to become effective.. maybe some sort of image caching going on?

foo_covers - locates your images on disk

Reply #10
0.02 is released. (+artist images)



I guess I'll just use a single * as a generic solution until I need something more refined.  Also, I had to restart foobar after changing the source for it to become effective.. maybe some sort of image caching going on?

If you use CUI's NG Playlist, switch to another playlist and then switch back should refresh the images. This plugin doesn't cache anything, since it is cached by the UI components.

foo_covers - locates your images on disk

Reply #11
Thanks for support for artist images, although it doesn't seem to save them between restarts. I can't get it to work with just artist.jpg either... but then it's not working even without this component. Strange.

Also, is it possible to use absolute paths for streams? I'm trying E:\Pictures\$replace(%path%,:,_,/,_).* but it doesn't work (e.g. with files called http___netcast6.kfjc.org_.gif). This is for the front cover, not artist pic.

foo_covers - locates your images on disk

Reply #12
I use this plugin to make latest foo_prettypop show images named %ALBUM%.jpg. So:

%album%.* - doesn't work.
%album%* - works, but loads first jpg in the folder, and that's not what intended.

foo_covers - locates your images on disk

Reply #13
Thanks for support for artist images, although it doesn't seem to save them between restarts. I can't get it to work with just artist.jpg either... but then it's not working even without this component. Strange.

Also, is it possible to use absolute paths for streams? I'm trying E:\Pictures\$replace(%path%,:,_,/,_).* but it doesn't work (e.g. with files called http___netcast6.kfjc.org_.gif). This is for the front cover, not artist pic.
About artist images, it is a bug  , will be fixed in the next release.
I intent to support local media files only since I thought it isn't so useful with something other than "file://". I can add this feature in the next release because it is easy to implement.

EDIT: Streams can't be supported, fb2k never use this plugin with streams.

I use this plugin to make latest foo_prettypop show images named %ALBUM%.jpg. So:

%album%.* - doesn't work.
%album%* - works, but loads first jpg in the folder, and that's not what intended.
I can't reproduced this problem here, is %album% contains some special characters?

foo_covers - locates your images on disk

Reply #14
Quote
I can't reproduced this problem here, is %album% contains some special characters?

album = Protection

image file = Protection.jpg
(located in the folder where mp3 files)

foo_covers settings for 'Front':
Code: [Select]
front.*
%album%.*

DefaultUI, ColumnsUI, foo_prettypop doesn't show this image.

Added: renamed that file to test.jpg and added 'test.*' to foo_covers settings:
Code: [Select]
front.*
%album%.*
test.*

Now it shows test.jpg.

foo_covers - locates your images on disk

Reply #15
I was also pondering about this beforehand.
Try this for %album%.jpg
$replace(%path%,%filename_ext%,%album%.*).

 

foo_covers - locates your images on disk

Reply #16
Try this for %album%.jpg
$replace(%path%,%filename_ext%,%album%.*).

No luck. Neither this, nor  $directory_path(%path%)\%album%.*

foo_covers - locates your images on disk

Reply #17
I can confirm the problems of the others.

An other point:
If a whole album is selected and not only a single track the album art viewer in DUI will display "[multiple items]" - foobars built-in artwork reader is able to tell the albumart viewer that there is only one image and will display it.

foo_covers - locates your images on disk

Reply #18
Thanks so much for this plugin! A simple
Code: [Select]
..\folder.jpg

displays my artist pictures.

foo_covers - locates your images on disk

Reply #19
album = Protection

image file = Protection.jpg
(located in the folder where mp3 files)

oops, the breakage is found!! This problem appears with the single track files. I didn't discover it since I mainly use foobar2000 to play multi-track WavPack files.
Fixed in the next release.

An other point:
If a whole album is selected and not only a single track the album art viewer in DUI will display "[multiple items]" - foobars built-in artwork reader is able to tell the albumart viewer that there is only one image and will display it.

This problem is quite tricky, I can't fix that until a workaround is found. (though I don't use DUI at all)

foo_covers - locates your images on disk

Reply #20
The new version 0.03 is released, check it at the first post.

foo_covers - locates your images on disk

Reply #21
With new version 0.03, if defined image not found, I see text [no image] in cover window.
With previous versions of plugin in this case, I see image that defined in Advanced/Display.
It is possible return back this item.

foo_covers - locates your images on disk

Reply #22
The new version 0.03 is released, check it at the first post.

Thanks, just wanted to report the fixed bug (with artist source). Keep up the good work!

foo_covers - locates your images on disk

Reply #23
Thank you! I have been waiting for something like this for some time. Now I can finally display all my album art without having to change my naming scheme  It's great to finally have all my high quality images available for use in the Default UI!

I have found a minor thing with the plugin though. When you select multiple tracks from the same album, the art view indicates '[Multiple Items]' even though it's the same cover for all the tracks. When the plugin is disabled, the art view will show cover art for all the selected tracks (obviously provided that the cover art is the same for all the tracks). Is it possible to change this behavior?

I hope that the above is clear and once again, many thanks for this!

Edit: Found a reply to my query in the posts above.

foo_covers - locates your images on disk

Reply #24
This component is absolutely fantastic !!!  It's exactly what I was hoping for. This functionality should have been added to foobar a long time ago. Thank you JackieKu.

Now I have two small requests :

1. when you select several tracks, the DUI art wiewer simply displays "multiple items". But what if I have selected a whole album where all selected tracks have the same cover ? Then I'd like the art viewer to display such cover. Could this be possible, or is it a limitation from the standard DUI art viewer ?

2. Could there be a "scan mode" that would automatically scan all the library, find all tracks (or all albums) with missing artwork, and create a text log report ?

Thanks again for a fantastic work.