After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336350 - Manual local cover art selection
Manual local cover art selection
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other All
: Normal enhancement
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 433109 541151 559919 561096 (view as bug list)
Depends on: 583130
Blocks:
 
 
Reported: 2006-03-28 14:42 UTC by Michael Monreal
Modified: 2009-12-09 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow manual cover art selection through d&d. (2.98 KB, patch)
2007-01-11 22:49 UTC, Pepijn van de Geer
none Details | Review
Allow manual cover art selection through d&d (3.54 KB, patch)
2007-01-13 21:05 UTC, Pepijn van de Geer
committed Details | Review
Make TrackInfoDisplay accept drag and drop (2.67 KB, patch)
2008-11-16 13:55 UTC, Bertrand Lorentz
needs-work Details | Review
Cover art tab (12.84 KB, patch)
2009-07-20 14:28 UTC, Jensen Somers
none Details | Review
Screenshot demonstrating the cover art tab (172.09 KB, image/png)
2009-07-20 14:29 UTC, Jensen Somers
  Details
Code cleanup. (12.47 KB, patch)
2009-07-21 07:53 UTC, Jensen Somers
none Details | Review
Applied guidelines, using Banshee.IO. (13.01 KB, patch)
2009-07-23 19:26 UTC, Jensen Somers
reviewed Details | Review

Description Michael Monreal 2006-03-28 14:42:23 UTC
Banshee supports getting cover art from musicbrainz as well as using cover files
stored in the album's folder itself. This is fine, but in various cases it would
be nice to be able to manually pic the cover art.

I propose to make the current cover art display area a drop target, so that you
can drop image files there which are then stored in banshee's cover folder and
used for that album.

I half-way expected this to work because i knew this feature from muine... it
would be a nice feature and it wouldn't even change the current interface.

Why not just copy a cover.jpg to the library folder using nautilus? well:
- manually locating the right folder is not always an easy task
- some people (like me) don't have write permissions to the music store, so
copying files to that directory is simply not possible.

I have a large number of albums from garage bands that are not on musicbrainz,
so this would be the only way to use the cover art feature for me. please consider

Other information:
Comment 1 Paul Cutler 2006-04-06 02:45:21 UTC
Thanks for the bug report.  This is a feature request, and I would suggest adding to the wiki at http://www.banshee-project.org/FeatureRequest
Comment 2 Michael Monreal 2006-04-06 07:58:38 UTC
Well... it's more a use case that is not covered by the current implementation, resulting in lower usability, so: bug ;)
Comment 3 Pepijn van de Geer 2007-01-11 22:49:51 UTC
Created attachment 80091 [details] [review]
Allow manual cover art selection through d&d.

This patch is an attempt to implement the feature request. It allows you to drop a cover image on the cover art view or cover art thumbnail to set the cover for an album/track.
It works quite well, but is not totally done yet. One thing i'll add is a check for the filetype or mime-type. But I would like some comments on the patch. Is this the right way to do this?
Comment 4 Ruben Vermeersch 2007-01-11 23:05:03 UTC
You might want to have a look at the (currently disabled) cover art editor (it's in the metadata edit dialog, but not functional yet). Making that work would be awesome.
Comment 5 Pepijn van de Geer 2007-01-11 23:43:14 UTC
I'll consider that my next exercise. 
I still think this would make a nice addition to banshee though.
It is really convenient and doesn't add any clutter to the interface.
Comment 6 Aaron Bockover 2007-01-12 17:36:51 UTC
One quick thing I see about this patch is that I will be deprecating the ASIN stuff altogether, so I wouldn't check for it. Always use TrackInfo.CreateArtistAlbumID and save the cover art appropriately.

Cool stuff, I'll look at it more closely after 0.11.4.
Comment 7 Pepijn van de Geer 2007-01-13 21:05:25 UTC
Created attachment 80199 [details] [review]
Allow manual cover art selection through d&d

I've updated the patch. 
The ASIN stuff is out. 
I added a check for filetypes and saving files accordingly.

The patch now partially depends on Trey Ethridge's patch: http://bugzilla.gnome.org/show_bug.cgi?id=388162

It still works without the patch but coverart other than .jpg isn't used.
Comment 8 Josiah Ritchie - flickerfly 2007-02-20 20:45:47 UTC
This has been implemented hasn't it?
Comment 9 Michael Monreal 2007-02-21 16:38:22 UTC
The patch still applies to trunk (not 100% clean but without errors) and changing coverart works, it's also saved correctly. But using this patch I lost my smart playlists... rebuild vanilla trunk and they showed up again. Just bad luck or a bug in the patch?
Comment 10 Pepijn van de Geer 2007-02-21 16:55:58 UTC
I just tried it against a fresh svn checkout and smart playlists still work fine here.
Comment 11 Michael Monreal 2007-02-21 17:06:02 UTC
Yeah... I just noticed that smart playlists just don't show up sometimes, it'S not releated to the patch (looking at the patch I would really wonder where the two things could be connected ;)

Can we get this into 0.12?
Comment 12 Ruben Vermeersch 2007-04-03 08:45:52 UTC
Looks good, can you provide us with a changelog entry?
Comment 13 Pepijn van de Geer 2007-04-03 09:51:18 UTC
Something like this?

2007-04-03  Pepijn van de Geer <pvandegeer@gmail.com>

    * src/Core/Banshee/PlayerInterface.cs: Set up CoverArtView and 
    TackInfoHeader as a DropTarget and provide method to handle D&D 
    for manual cover art selection. (BGO #336350)

Should I normally add this to the patchfile? I think I read somewhere that I should, but it would instantly outdate the diff since the Changelog changes so often and the date would be out of date when te patch gets applied.
    
Comment 14 Ruben Vermeersch 2007-04-03 09:57:57 UTC
Perfect!

Doesn't really matter where you supply it. You're right about the patch being outdated quickly if you embed it there, so pasting it in the bugzilla next to the patch is fine. Thanks Pepijn!
Comment 15 Aaron Bockover 2007-04-18 21:51:46 UTC
I'm a bit confused about this patch... doesn't the cover_art_view need to be visible for this to work? It's not visible if there's no cover art on the track, so I don't really get the point...
Comment 16 Pepijn van de Geer 2007-04-20 08:48:14 UTC
It also works on the small coverart icon in the TrackInfoHeader, which is always visible.
Comment 17 Josiah Ritchie - flickerfly 2007-08-22 23:45:39 UTC
Did this ever get pulled in? I can't see what information is needed so I'm going to put this back to Open.
Comment 18 Josiah Ritchie - flickerfly 2007-08-23 03:27:38 UTC
Please specify the latest version of banshee you have been able to test this against or let us know that this is no longer a problem. Thank you for helping us keep track of your bug.
Comment 19 Michael Monreal 2007-08-23 08:47:39 UTC
Not fixed. Would be nice to have this both in the main interface (cover area) and track editor (as requested by aaron in a recent blog post.
Comment 20 Gabriel Burt 2007-10-23 21:45:44 UTC
Just committed a modified version of this to the stable branch, coming to trunk soon.  Changes include: wrapping it all in a try/catch for safety and removing existing cover art (b/c even though we Copy with overwrite = true, that handle the case of different file types).  Thanks everybody!
Comment 21 Andrew Conkling 2008-06-14 20:37:14 UTC
*** Bug 433109 has been marked as a duplicate of this bug. ***
Comment 22 Andrew Conkling 2008-07-04 00:06:39 UTC
*** Bug 541151 has been marked as a duplicate of this bug. ***
Comment 23 Andrew Conkling 2008-07-04 00:23:02 UTC
Is this still valid for trunk/1.0?
Comment 24 Michael Monreal 2008-07-04 07:57:26 UTC
As you can read in #20, gabaug committed a modified patch to stable but the commit to trunk never happended, so 0.13.x has this feature while 1.0.x does not (yet).
Comment 25 Andrew Conkling 2008-07-10 20:59:46 UTC
Ah, I missed that, just read "committed". Wishful thinking.

Reopening since the "stable" branch is now the legacy branch. :)
Comment 26 Bertrand Lorentz 2008-11-08 18:48:59 UTC
*** Bug 559919 has been marked as a duplicate of this bug. ***
Comment 27 Gabriel Burt 2008-11-12 17:12:43 UTC
If anybody wants to work on this, the way to do it in trunk is to modify the TrackInfoDisplay class to handle the DnD and, ideally, right click -> "Edit Cover Art" or something.  Would probably be good to have a new tab in the Edit Track dialog for Cover Art that lets you choose/DnD a local file or select between the images found by the various Metadata providers (Last.fm, Rhapsody, etc) etc.  Aaron's made it easy to add tabs to the editor through an extension point.
Comment 28 Bertrand Lorentz 2008-11-16 13:55:24 UTC
Created attachment 122790 [details] [review]
Make TrackInfoDisplay accept drag and drop

Here's a first step : with this patch, TrackInfoDisplay accepts and saves a cover art file dropped into it.

TODO :
1. All the resized files of the pre-existing cover art should be deleted
2. Check that the file being dragged is an image
3. The UI stuff mentioned by Gabriel

Feel free to work on that !
Comment 29 Bertrand Lorentz 2008-11-17 19:14:14 UTC
*** Bug 561096 has been marked as a duplicate of this bug. ***
Comment 30 Scott Moak 2009-02-09 17:11:26 UTC
I've been working on adding a new tab on the Edit Track Dialog for this purpose. (In reply to comment #27)
> If anybody wants to work on this, the way to do it in trunk is to modify the
> TrackInfoDisplay class to handle the DnD and, ideally, right click -> "Edit
> Cover Art" or something.  Would probably be good to have a new tab in the Edit
> Track dialog for Cover Art that lets you choose/DnD a local file or select
> between the images found by the various Metadata providers (Last.fm, Rhapsody,
> etc) etc.  Aaron's made it easy to add tabs to the editor through an extension
> point.
> 

I'd like to work on this if it's still open.
Comment 31 Gabriel Burt 2009-02-09 17:44:29 UTC
Scott, please go ahead, I don't think anybody else is working on the tab stuff.
Comment 32 Scott Moak 2009-02-09 17:53:22 UTC
(In reply to comment #31)
> Scott, please go ahead, I don't think anybody else is working on the tab stuff.
> 

Alright, is it easier on you guys to make it an extension or just put it in the actual source?
Comment 33 Gabriel Burt 2009-02-09 17:56:57 UTC
Not sure - I like the idea of putting it in the existing Banshee.CoverArt extension (and eventually moving the Last.fm/Amazon/etc downloaders there too).
Comment 34 Scott Moak 2009-02-09 18:02:00 UTC
Ok I'll work on putting it into the existing Banshee.CoverArt extension.
Comment 35 Jensen Somers 2009-07-20 14:28:46 UTC
Created attachment 138822 [details] [review]
Cover art tab

Since this is a feature I was missing myself I spent the afternoon writing a small patch. It adds a cover art tab to the track editor dialog where you add, edit or remove the album art cover.

The patch does not allow a lot of interaction such as DnD but simply uses 3 buttons to allow these operations.

Also note that when removing the cover art and saving Banshee attempts to fetch the cover art automatically and, if found, instantly re-adds the cover art.
Comment 36 Jensen Somers 2009-07-20 14:29:42 UTC
Created attachment 138823 [details]
Screenshot demonstrating the cover art tab
Comment 37 Jensen Somers 2009-07-21 07:53:42 UTC
Created attachment 138892 [details] [review]
Code cleanup.

Some code cleanup.
Comment 38 Jensen Somers 2009-07-23 19:26:56 UTC
Created attachment 139102 [details] [review]
Applied guidelines, using Banshee.IO.

Small cleanup using Banshee.IO.
Comment 39 Gabriel Burt 2009-08-12 21:30:31 UTC
Thanks Jensen, this is a really good patch.

Only nitpick is Catalog.GetString("Cover Art"); => Catalog.GetString ("Cover Art");

I'm setting this bug and patch as blocked by bug #583130, since it doesn't account for the crazy caching going on currently.
Comment 40 Gabriel Burt 2009-12-05 03:48:02 UTC
I just committed a different approach (making the existing cover art images editable via DnD and context menu) to the art-caching branch, which should be merged into master soon:

http://git.gnome.org/cgit/banshee/log/?h=art-caching
Comment 41 Gabriel Burt 2009-12-05 21:10:38 UTC
Merged to master; fixed.
Comment 42 Robin Stocker 2009-12-09 15:22:06 UTC
Drag and drop of a picture from a web browser (tested in Firefox) doesn't work yet. Would be very nice as it would obsolete the steps "save to directory", "browse to folder and select picture", "delete file again in file browser".
Comment 43 Michael Martin-Smucker 2009-12-09 15:50:02 UTC
(In reply to comment #42)
> Drag and drop of a picture from a web browser (tested in Firefox) doesn't work
> yet. Would be very nice as it would obsolete the steps "save to directory",
> "browse to folder and select picture", "delete file again in file browser".

I noticed this too (with Chrome - good to know the same is true of Firefox), and I opened Bug 603911 to track the issue.