getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: Mayibongwe on November 30, 2024, 11:58:15 AM

Title: Rounded Artwork
Post by: Mayibongwe on November 30, 2024, 11:58:15 AM
Download link: here (https://getmusicbee.com/addons/plugins/523/rounded-artwork/)

I haven't found a way to manipulate the album covers on the Track Information panel.
But this seems to work for all other locations (as far as the layouts I primarily use are concerned).

I've borrowed the code from here:
https://stackoverflow.com/questions/1758762/how-to-create-image-with-rounded-corners-in-c

The background colour and radius of the stripped corners can be overridden using:
...MusicBee\AppData\mb_RoundedArtwork\Skins

NB: This does not and will not replace the actual artwork on your music files.

Supported features (descriptions commented out in gray):
(https://i.imgur.com/bOVmEF3.png)   (https://i.imgur.com/Tx2M5Ab.png)
(https://i.imgur.com/VZXrT3s.png)   (https://i.imgur.com/bSIxRWY.png)
(https://i.imgur.com/3smNfIF.png)   (https://i.imgur.com/wkhYmCG.png)

I would like to have the album artworks with rounded corners just like on Apple Music for example.
But I'd really wish we would have an options to turn sightly rounded corners on album artwork.
is it possible to round album covers (corners) in the main panel by 15px. and increase even more the distance between album covers.????
Title: Re: Rounded Artwork
Post by: aktor on November 30, 2024, 02:02:31 PM
Doesn't work. I have 3.6.9100 version.
Title: Re: Rounded Artwork
Post by: hiccup on November 30, 2024, 02:11:54 PM
Very nice Mayibongwe.
It never crossed my mind that this could be done wilt a plugin. Very creative.
And it works very well out-of-the box, with no effort required of the user.

Me being kind of a stickler for preferring to see things as they actually are I probably won't be using this myself, but I'm sure many users will enjoy this–what they often call 'modern'–look.
Title: Re: Rounded Artwork
Post by: Artesoll on November 30, 2024, 04:55:42 PM

It didn't work, but it was worth a try.
It's important to always be thinking about evolving while designing.
Who knows, maybe in the future it will be an option for the application itself.
Title: Re: Rounded Artwork
Post by: hiccup on November 30, 2024, 05:04:07 PM
It's important to always be thinking about evolving while designing.
MusicBee is pretty much about showing things as they are.
If artwork is rounded, it will show up as rounded.
If it is square, it will show up square.
Modifying or disfiguring 'artist intent' is not evolvement. (in the sense of making things better)
Title: Re: Rounded Artwork
Post by: Mayibongwe on November 30, 2024, 05:16:11 PM
Thanks hiccup. I can't remember what I was looking for under the cache folder when I spotted those album covers and manually modified one as a test.
When it worked, I then remembered the wishlist request for the rounded corners. There seems to be quite a bit that plugins can help with.
I'm not able to round the artwork in the Track Info panel because that seems to be displayed at full resolution - directly from the tracks and not cached artwork.

Doesn't work. I have 3.6.9100 version.
There's an Activity.log file under ...MusicBee\AppData\mb_RoundedArtwork
Can you let me know what that says? (you too Artesoll)
Title: Re: Rounded Artwork
Post by: Artesoll on November 30, 2024, 05:26:17 PM
Thanks hiccup. I can't remember what I was looking for under the cache folder when I spotted those album covers and manually modified one as a test.
When it worked, I then remembered the wishlist request for the rounded corners. There seems to be quite a bit that plugins can help with.
I'm not able to round the artwork in the Track Info panel because that seems to be displayed at full resolution - directly from the tracks and not cached artwork.

Doesn't work. I have 3.6.9100 version.
There's an Activity.log file under ...MusicBee\AppData\mb_RoundedArtwork
Can you let me know what that says? (you too Artesoll)

It says ( Initializing plugin...
Skin loaded: Divine Light)

My version is 3.6.9083
Title: Re: Rounded Artwork
Post by: karbock on November 30, 2024, 05:26:58 PM
Nicely done, Mayinbongwe!
It's working straight out-of-the-box here (3.6.9091 P).

@aktor, @artesoll
Just in case: you won't instantly see the difference for all the album covers, as they are adapted one by one in the background.
Title: Re: Rounded Artwork
Post by: aktor on November 30, 2024, 05:35:37 PM
Activity log
Initializing plugin...
Skin loaded: Luna


Title: Re: Rounded Artwork
Post by: Mayibongwe on November 30, 2024, 06:03:08 PM
@aktor, @artesoll - thanks for that info.

After the skin gets loaded, the plugin will attempt to get a list of all files under ...AppData\InternalCache\AlbumCovers
Not sure yet why it wouldn't get past that phase. But can you:

- reset the artwork cache by deleting the above folder
- then also deleting  ...MusicBee\AppData\mb_RoundedArtwork\Database.dat
- restarting MusicBee so that it rebuilds its original non-rounded artwork
- after that, restart it once more to get the plugin to reprocess the artwork
Title: Re: Rounded Artwork
Post by: aktor on November 30, 2024, 06:15:23 PM
There is no Database.dat only skins folder and activity.log
Title: Re: Rounded Artwork
Post by: Mayibongwe on November 30, 2024, 06:23:58 PM
That wasn't my brightest moment - that file won't exist yet because the plugin hadn't reached that point as yet.
But that's fine then, proceed with the restarts after deleting the folder in step 1, and see if that does it.
Title: Re: Rounded Artwork
Post by: aktor on November 30, 2024, 06:34:21 PM
Doesn't work.
Title: Re: Rounded Artwork
Post by: BoringName on December 02, 2024, 06:41:09 AM
Worked ok for me.

I noticed it effectively creates a copy of all your artwork in AppData\mb_RoundedArtwork\temp for all libraries, not just the one that is currently active.

I imagine that might take up a lot of space if you have a large library.

It also created 9 copies in this folder for the cover for Nirvana Nevermind 30th anniversary, which is a bit weird because there are 13 tracks on the album. It's listed as a single album in Musicbee.

It's grabbing the album covers from AppData\InternalCache which has the 9 nirvana covers in there so the plugin didn't cause that problem, it's probably my terrible test library.....

The InternalCache folder is only there on the portable version of Musicbee. There is no InternalCache folder in C:\Users\<Username>\AppData\Roaming\MusicBee so it's probably not working for people running the installed version.

edit: I've only had 4 hours sleep in the last 2 days so I'm probably missing something but I can't see anything in the source code that tells Musicbee to display the rounded temp images instead of the original artwork. How are you doing that? Nevermind, I see it.

edit2: If it helps. the internalcache folder for the installed version is located here on my machine
C:\Users\<username>\AppData\Local\MusicBee\InternalCache
Title: Re: Rounded Artwork
Post by: aktor on December 02, 2024, 08:37:27 AM
I have installer version. I copied internal cache folder in to appdata\roamin\musicbee folder and it created temp folder with png files (not rounded) and database.dat.
Initializing plugin...
Skin loaded: Luna
Creating database
Rounded artwork created: 2301
But it sill doesn't work.
You probably need to create separate plugins for portable and installer version.
Title: Re: Rounded Artwork
Post by: karbock on December 02, 2024, 08:47:08 AM
@Mayinbongwe:
Have you checked the folder names used in your code?
See C.1 and C.2 here (https://getmusicbee.com/forum/index.php?topic=36875.0#post_Title_2C).

Title: Re: Rounded Artwork
Post by: Mayibongwe on December 02, 2024, 07:00:03 PM
Thanks for the additional info, guys - your comments have hit the nail on the head, BoringName.
It's been silly of me to forget about the Installer & Store versions having different folder locations and most important of all:
not adding a simple check such as whether or not the plugin will find the cache folder where it expects to (slonopot did warn me about these things not so long ago 🙈).

I see the store version's cache folder is buried deep in C:\Users\<user>\AppData\Local\Packages\50072StevenMayall.MusicBee_kcr266et74avj\LocalCache\Local\MusicBee
Goodness! But I will address these various file paths across the different MusicBee editions (with aid from karbock's guide too).

I noticed it effectively creates a copy of all your artwork in AppData\mb_RoundedArtwork\temp for all libraries, not just the one that is currently active.
I imagine that might take up a lot of space if you have a large library.
I only do this once at installation, and then delete that temp folder when MusicBee shuts down.
So it won't be a case that these dupes are created every time MusicBee opens - let alone that they occupy any storage space after the first session of use.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 02, 2024, 08:46:41 PM
v1.1 available on the same download link should now work with the Installer and Store versions too.
And with thanks to Steven, there should now be an improvement on the speed by which the artwork is loaded.
Title: Re: Rounded Artwork
Post by: aktor on December 02, 2024, 09:22:32 PM
Now it works. Looks nice.
Suggestion: Customized Radius for rounding artwork. (smaller).
Is it possible to customize the background color for  different tabs?
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 03, 2024, 08:05:00 AM
#1   Suggestion: Customized Radius for rounding artwork. (smaller).
#2   Is it possible to customize the background color for  different tabs?
#1   This I will do - I had thought about it days ago.

#2   Unfortunately not. MusicBee only uses 1 set of artwork cache to display album covers across the various tabs & thumbnail browser, etc.
        Does your skin have different background colours on various tabs for the artwork?
        I can look into making the corners transparent if MusicBee will allow that (I will check this evening).
Title: Re: Rounded Artwork
Post by: aktor on December 03, 2024, 08:15:36 AM
Yes. I have different shades of grey. And making it transparent would be ideal.
Title: Re: Rounded Artwork
Post by: aktor on December 03, 2024, 09:57:44 AM
I deleted the borders and transparent borders work well. But "Fully transparent. This keyword can be considered a shorthand for transparent black, rgba(0,0,0,0), which is its computed value." doesnt allow plugin to run.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 06, 2024, 05:42:26 PM
#1   Suggestion: Customized Radius for rounding artwork. (smaller).
#2   Is it possible to customize the background color for  different tabs?
The new version up for download now supports the above.

#1   The radius can be configured in the specific skin loaded @ ...AppData\mb_RoundedArtwork\Skins
        After installing the update, please delete this folder before starting MusicBee so that it gets recreated with the particular attribute - the default value is 50.

#2   While not on a per-tab-basis as mentioned earlier, the background on the corners will now transparentize by default.
        A global colour override is still supported within the skin file.
Title: Re: Rounded Artwork
Post by: aktor on December 06, 2024, 06:00:41 PM
I works well. But sadly there is this border  <element id="Controls.ArtworkFrame" bdr="255,255,255" />  that can not be made invisible.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 06, 2024, 06:07:41 PM
can't you set the bdr to match the background of your panel?
(or will this not work for other panels with different backgrounds)?
Title: Re: Rounded Artwork
Post by: aktor on December 06, 2024, 06:17:29 PM
Yes the panels are with different backgrounds.
Artwork borders are en element of the skin but i can't change it. How are transparent borders working for you?

https://imgur.com/a/ydPfVw6
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 06, 2024, 06:51:53 PM
For myself: because I use extremely dark skins, it blends in quite well with the background.
But below is also MusicBee's default skin. So I imagine the artwork borders are 'invisible' because the bdr of that element is set to white.
(https://i.imgur.com/XGacuGp.png)
Can you post a screenshot of another panel or tab on that same skin of yours that does not have a white background?
What skin is it by the way? and which tab is your screenshot from?
Title: Re: Rounded Artwork
Post by: aktor on December 06, 2024, 06:58:39 PM
(https://i.imgur.com/ufit6iE.png)
Title: Re: Rounded Artwork
Post by: Artesoll on December 09, 2024, 12:38:55 AM
It worked perfectly.
I'll test how to reduce the radius of the edges.
I'm very happy that something I requested a long time ago was done, despite all the jokes I heard.
Thank you, even if it hadn't worked, just trying to do it would have been worth it.

(https://www.dropbox.com/scl/fi/jvrqf3whajl0ii398cjxd/Capa.png?rlkey=f8bv2jro5retlgb55nkmuatp2&st=yya073m2&dl=1)
Title: Re: Rounded Artwork
Post by: Clarity on December 09, 2024, 01:49:31 PM
Which (the jokes) often come from the same people who forget that album covers have almost always adhered to the status quo of being a certain shape. It kind of reminds me of someone who recently claimed that male cooks are better than female ones, using the fact that there are more professional male cooks than female ones as evidence.

Those people completely dismiss why things develop a certain way over time.

The square shape of album covers originated from practical constraints, not aesthetic preference. This standard evolved over time, but innovation like altering shapes challenges norms that were never fixed in purpose. Let users display content freely—musicians are creators, not box designers.

I think it's great that Mayibongwe is trying to break such norms despite the resistance. It's creative and, above all, ambitious for such a young developer. I honestly don't see anything negative here. It's always good to have options as long as usability and performance aren't compromised.

Title: Re: Rounded Artwork
Post by: MotleyG on December 09, 2024, 06:23:36 PM
The square shape of album covers originated from practical constraints, not aesthetic preference. This standard evolved over time, but innovation like altering shapes challenges norms that were never fixed in purpose. Let users display content freely—musicians are creators, not box designers.
There are many shapes and forms to the artwork on various releases including round picture discs that have no cover, long boxes for CD were popular in the earlier years of that format, and box sets come in all sorts of variouos shapes and sizes. Including cover images that match these formats isn't unusual. Most image software defaults to squared corners regardless of the actual dimensions anyhow.

It's always good to have options as long as usability and performance aren't compromised.
IMHO - This is the far more important aspect. Many of us spend a lot of time making sure we get perfect, exact rips of our music. The artwork is often dealt with similarly without compromise. And many musicians would argue that their album artwork IS a part of their creative process! Either way, without an option to display album art as-is from the stored image, I would push back on this idea myself. But allowing users the option to choose to intentionally round the corners of their own library display is a legitimate request.
Title: Re: Rounded Artwork
Post by: VNCE on December 15, 2024, 02:50:19 PM
Hi,

I would like to understand how the plugin works before installing it.
 
My concern is that it might replace the original embedded cover art with a cropped version directly in the file.
I would prefer that the original embedded cover art not be replaced, as I need to preserve it for archival purposes.

Thank you in advance for your clarification.
Title: Re: Rounded Artwork
Post by: aktor on December 15, 2024, 03:50:07 PM
It does only replace files in internal cache folder.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 16, 2024, 03:29:20 PM
My concern is that it might replace the original embedded cover art with a cropped version directly in the file.
I would prefer that the original embedded cover art not be replaced, as I need to preserve it for archival purposes.
As aktor mentioned, this won't touch the music files themselves.
It only modifies MusicBee's cached artwork - in other words, copies of your actual album covers created for display purposes in various MB locations.
I should make a note of this in the start post and add-on page - thanks for asking.
Title: Re: Rounded Artwork
Post by: Haste on December 16, 2024, 07:04:06 PM
Awesome plugin.

Quick question. If I reduce the radius to another a smaller value than default. How do I make sure all the artwork cached changes to the new smaller radius?
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 16, 2024, 07:27:33 PM
With MusicBee open, can you try deleting the artwork cache folder (so that it rebuilds the originals).
Also delete the plugin database file inside the appData folder.
Then restart MB and the new radius should kick in.
Title: Re: Rounded Artwork
Post by: Haste on December 16, 2024, 07:56:27 PM
Thank you.

I've tried some different values and I'm getting somewhat mixed result with the corners.

For example this is with radius 12:

(https://i.imgur.com/FhylKRF.png)

The right and bottom corners look different from top and left for example. (You might need to zoom in to see what I mean)

I had the same issue with radius 10.
But maybe there are some "magic" values that work better.

BTW, I have no idea how feasible it is but... this plugin might open for even more cool stuffs. For example custom margins, shadows, outlines, ...
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 17, 2024, 09:25:11 AM
#1   The right and bottom corners look different from top and left for example. (You might need to zoom in to see what I mean)
#2   BTW, I have no idea how feasible it is but... this plugin might open for even more cool stuffs. For example custom margins, shadows, outlines, ...
#1   A difficult one to spot, but it should be fixed now if you redownload the plugin - all four corners are now even.

        I have also added two hotkeys: (i) Artwork: Rebuild Cache   and   (ii) Artwork: Round Corners.
        While (ii) now alleviates the need for a restart, (i) still requires it because MB only rebuilds the cache folder on startup - all the hotkey will do is delete the cache folder for you.

#2   Yeah, that's what I'd thought to myself too.
        Using the same technique, I was able to convert the artwork to grayscale which paved a way for a full-blown dark skin (albeit one that won't be popular amongst folks).
        But yes, there's room for achieving some naughty aesthetics with this.

        MusicBee's skinning options already support outlines. But yeah, things like glow effects, changing the perspective on the artwork have come to mind too.
Title: Re: Rounded Artwork
Post by: Haste on December 17, 2024, 01:20:44 PM
#1    Thank you.
         I can see now that it looks perfectly symmetric. The hotkeys are a nice time save as well!

         I think it can potentially be improved still. The sides are currently translucid which gives a fuzzy look to the artwork.
         Would it be possible to have fully opaque sides? (while keeping the antialiasing on the corners)


#2    For the outline, I am aware of the skinning option and I've been using in it. But now with rounded corners we need a different solution in order to make the outline conform to the new shape.
Title: Re: Rounded Artwork
Post by: aktor on December 17, 2024, 02:56:46 PM
In deferent views with different cover sizes the same corner radius doesn't work well. would you be able to modify your plugin if developer gives us an option to store album artwork for different views in separate folders?
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 17, 2024, 03:59:52 PM
I think it can potentially be improved still. The sides are currently translucid which gives a fuzzy look to the artwork.
Would it be possible to have fully opaque sides? (while keeping the antialiasing on the corners)
Would you be able to post a side-by-side comparison of how this would look (before vs after)? I'm not able to picture this.

In deferent views with different cover sizes the same corner radius doesn't work well.
would you be able to modify your plugin if developer gives us an option to store album artwork for different views in separate folders?
On my side, I would be able to in the event that it was supported by MusicBee. But I'm highly doubtful you will get your wish though,
because such MB behaviour will go on to affect other users who have no need for artwork to be cached on a per view/tab/layout basis (unnecessary waste of disc space, etc).

Edit:
I know you said it's something you would request as an option, but even at that, you need to remember that
the time that would be spent implementing such an option by MusicBee's extremely busy developer,  would need to be justified...
such as, at the very least, the wish having an overwhelming amount of support - which as you can tell, is something severely lacking on this side of the play ground.
Title: Re: Rounded Artwork
Post by: Haste on December 17, 2024, 04:26:30 PM
Quote
Would you be able to post a side-by-side comparison of how this would look (before vs after)? I'm not able to picture this.

The "edges" I'm talking about are what I circled in this image:
before: (https://i.imgur.com/tFmLpyH.png)

After: (https://i.imgur.com/s1oHMhN.png)

This is a crude edit. I just removed 1 pixels on the borders. This would look wrong in practice because I degraded the quality of the rounded corners. But it shows how the edges are now "solid" and not fuzzy from being blended with the background.
Title: Re: Rounded Artwork
Post by: boroda on December 22, 2024, 04:51:26 AM
@Mayibongwe, could you add the option for shadows?
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 22, 2024, 06:09:57 AM
@Mayibongwe, could you add the option for shadows?
sure, I'll have a look.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 22, 2024, 02:04:20 PM
The "edges" I'm talking about are what I circled in this image:
It doesn't look like I can do anything about this without switching off the antialiasing - which is only applied on the corners (the slight transparency on the middle edges is a byproduct).
As far as my testing goes, when the corners are transparent (i.e. without a bg override set), then the borders are solid/unaltered for the most part.

Below are my test results based on the row highlighted in yellow (which is the endpoint of the curve from the top-right).
So with transparency on, the pixel at that point is identical to the original image.

(https://i.imgur.com/dlT30FC.png)
Title: Re: Rounded Artwork
Post by: BoringName on December 22, 2024, 11:48:05 PM
Antialiasing methods can be painfully inconsistent. The quality and content of the artwork images would have a big effect on it.

You could try SmoothingMode.HighQuality, it's listed as an equivalent to SmoothingMode.Antialias but from what I've read there are differences between the two.

A possible more complicated fix would be to copy the pixel data from the original image for the edges after the curved corners and antialiasing is done.

It wouldn't be a fun job sorting that out though....
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 23, 2024, 04:39:32 AM
#1 The quality and content of the artwork images would have a big effect on it.
#2 You could try SmoothingMode.HighQuality, it's listed as an equivalent to SmoothingMode.Antialias but from what I've read there are differences between the two.
#3 A possible more complicated fix would be to copy the pixel data from the original image for the edges after the curved corners and antialiasing is done.
#1 Yep, with this colourized image below, the disparity on the middle endpoints is even higher compared to the earlier black and white artwork.
#2 I've made a comparison of the two, and with transparency on, they're identical. When a custom bg is set, antialias seems the better option as it doesn't stray a lot.
#3 I had thought about that, and nope haha, as you say, that won't be a fun avenue to take (especially considering that these are slight variants only - almost negligible really).
      Perhaps an option to sharpen the final bitmap might help things somewhat, I'll see.
      (https://i.imgur.com/GtZY6mH.png)
Title: Re: Rounded Artwork
Post by: Haste on December 26, 2024, 03:20:25 AM
Imagine a little bit of a soft dropshadow with this, it could look so neat.   :-[

(https://i.imgur.com/xsd7YeE.png)
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 26, 2024, 07:23:12 PM
Imagine a little bit of a soft dropshadow with this, it could look so neat.   :-[
I concur, currently looking into a dotnet library to help with this.
It's a bit of uncharted territory for me. So slowly but surely, it is coming along.
Will add your screenshot to the download page of the plugin - i think it looks quite nice already.

And to folks who have in the past complained about MusicBee's lack of documentation in the API, they don't know how spoilt we are :)
Title: Re: Rounded Artwork
Post by: Haste on December 27, 2024, 12:59:14 AM
- New feature proposal: Ability to set custom values that apply by default to all skins which don't have their own settings yet.
This would be very handy when you have a lot of skins and are often adding new ones.

- Unwanted behavior report: It seems that updating some tags resets the cached album art.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 27, 2024, 06:25:57 AM
- New feature proposal: Ability to set custom values that apply by default to all skins which don't have their own settings yet.
This would be very handy when you have a lot of skins and are often adding new ones.

- Unwanted behavior report: It seems that updating some tags resets the cached album art embed in the file.
Sure, #1 should be doable just fine.

#2 is a MusicBee thing, unfortunately. The problem that this causes at the moment is that the file reference remains in the plugin database.
So it won't get reprocessed after MusicBee resets it.
I will look into adding a creation/modification date for comparison so that the reference is removed should MusicBee recreate the file.
Title: Re: Rounded Artwork
Post by: BoringName on December 27, 2024, 07:11:19 AM
Imagine a little bit of a soft dropshadow with this, it could look so neat.   :-[

I'm not a fan of curved edges usually but that screen shot does look pretty nice.

I should probably look at implementing it for 3DBee.
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 27, 2024, 08:00:52 AM
- New feature proposal: Ability to set custom values that apply by default to all skins which don't have their own settings yet.
This would be very handy when you have a lot of skins and are often adding new ones.

- Unwanted behavior report: It seems that updating some tags resets the cached album art embed in the file.
I've uploaded a new plugin version which should address both requests.
When you start MusicBee, a file called 'default.dat' under the skins folder will be created based on your current skin settings and then going forward:
all freshly loaded skins will default to that - the file can be edited as desired.

For request #2, you will have to reapply the effects using the plugin hotkey after editing your tags - this will only be done to that 1 file.
As mentioned, this is the best compromise as I cannot stop MusicBee from rebuilding the artwork cache following a tag edit.

Edit:
well, technically, I could probably stop it by setting the artwork cache files to read-only (thus preventing MB from rewriting them),
but I mean, you can imagine what kind of future problems we'll get by doing that. So nope, the compromise will have to do.
Title: Re: Rounded Artwork
Post by: Steven on December 27, 2024, 09:04:33 AM
You could use the c# file watcher to monitor new or updated files in the cache folders
Title: Re: Rounded Artwork
Post by: aktor on December 27, 2024, 03:07:47 PM
In order to use this plugin in a skin with different background colors the border must be set to transparent but then this frame is visible. Is this possible to correct.(https://i.imgur.com/dlT30FC.png)
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 27, 2024, 05:36:57 PM
In order to use this plugin in a skin with different background colors the border must be set to transparent but then this frame is visible. Is this possible to correct.
No, not with the plugin as that is a frame created by MusicBee.
Good news is that you are already making some headway with it here: https://getmusicbee.com/forum/index.php?topic=42252.0
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 29, 2024, 02:50:37 PM
could you add the option for shadows?
Imagine a little bit of a soft dropshadow with this, it could look so neat.   :-[
(https://i.imgur.com/xsd7YeE.png)
Is this what we mean? There'll be options for both users (corners rounded or not).
The experience has been the equivalent of using Paint.Net without a UI.

(https://i.imgur.com/lCxjM5s.png)
Title: Re: Rounded Artwork
Post by: Haste on December 29, 2024, 03:39:38 PM
Let me preface this by saying I unfortunately don't know anything about coding nor designing.

I'd like a shadow from an ambient light around the album art. Or a combination of an ambient light an a key light right above the album art like here: https://m2.material.io/design/environment/light-shadows.html#light

I'm thinking to get closer to that, maybe it's possible to increases the size of the shadow, increase the blurring, reduce the opacity.
Offsetting the shadow layer only down and not to the right.
Maybe using 2 layers. One for ambient light, one for key light.

But yeah, if it's like paint.net without an UI, I take it it's not trivial what I'm asking right now  ::)

Maybe some settings could be exposed to the users. The most obvious one would be the opacity.

edit: here are some examples I found that I think look decent:
- https://flatstudbucket.s3.amazonaws.com/uploads/component/field_image/1345/1433-block_12_2x.png
- https://cdn.dribbble.com/users/779743/screenshots/5947881/attachments/1279168/apple_music_home_2x.png
Title: Re: Rounded Artwork
Post by: Mayibongwe on December 31, 2024, 04:47:35 PM
Sure, no probs, i will play around with it again to see if I can get much closer.

You could use the c# file watcher to monitor new or updated files in the cache folders
Thanks Steven, the automation will help things a lot. Haven't gotten it to work reliably as yet though.
The changed event is firing more than once - must be due to the immediate overwrite on my side that it's picking up.
I will find a way to work around that, thanks again!
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 01, 2025, 01:22:55 PM
I'm thinking to get closer to that, maybe it's possible to increases the size of the shadow, increase the blurring, reduce the opacity.
Offsetting the shadow layer only down and not to the right.
There will be skin settings for these.
This a bit better? I've compared two sets with a 1 unit marginal difference between the blur levels.
If this is within expectation, then I can upload a new plugin version and we'll take it from there.
(https://i.imgur.com/opvlkjE.png)
Title: Re: Rounded Artwork
Post by: Haste on January 01, 2025, 01:42:50 PM
Nice work!

Is it just a binary setting or can you chose a desired value for the opacity?

I ask this because I would probably reduce it below the lighter shadow preset for my use. But I'm sure others might like it a bit stronger. (and it also depends on the skin background, of course)
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 01, 2025, 01:56:31 PM
Is it just a binary setting or can you chose a desired value for the opacity?
I ask this because I would probably reduce it below the lighter shadow preset for my use. But I'm sure others might like it a bit stronger. (and it also depends on the skin background, of course)
It will be a percentage option - so anything between 0 and 100 will be supported.
I will post here once the update is uploaded - will do that later though once I test things some more.

Also, as a general note to the transparency that is applied on the artwork:
Please note that certain views like the expanded panel here use a .jpg format which unlike .png does not support transparency (hence the enforced black border below):
(https://i.imgur.com/uwp96VV.png)
Title: Re: Rounded Artwork
Post by: aktor on January 02, 2025, 09:27:04 AM
I see you update Mb to the last version as there are no more borders visible.
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 03, 2025, 10:51:26 AM
To let y'all know in advance: from Monday, I will start to get busy with life outside the forum again - so my presence here (particularly on plugins) will be limited.
So I've taken the time to make enhancements now beyond the shadow effects we were discussing recently.

The plugin now makes use of an "Image Magick" library - so there is a dependency runtime .dll that will need to accompany the plugin.dll
This extra .dll is included in the usual .zip file from the download link that you will need to extract to MusicBee's plugins folder.

In the code block below are now the default supported operations on a skin:
Below are also screenshots of what can be roughly achieved now - for existing skins, you will have to manually add in the elements of interest.

Another behind-the-scenes amendment is that the image processing will now occur in a separate background thread.
What this means is that this plugin will no longer freeze or lock up MusicBee's GUI whilst the artwork is being processed.

You can now also see the progress on how much artwork is yet to be or has been processed in MB's status bar.
The status bar is located just above the player controls in the below screenshots.

Code
<?xml version="1.0" encoding="utf-8"?>
<root>

<element id="Corners" enabled="true" rd="35" bg="r,g,b"/>   <!-- rounded edges -->
<element id="Shadows" enabled="false" blur="4" opacity="80" fg="0,0,0"/>   <!-- shadow effect -->
<element id="Shear" enabled="false" x="10" y="15"/>   <!-- create parallelogram -->
<element id="Tint" enabled="false" fg="0,0,255" r="60" g="5" b="10"/>   <!-- hue effect -->
<element id="Sharpen" enabled="true"/>   <!-- improve artwork quality -->
<element id="Sepia Tone" enabled="false"/>   <!-- gold-like effect -->
<element id="Grayscale" enabled="false"/>   <!-- black and white effect -->
<element id="ArtistThumbs" enabled="false"/>   <!-- applies the above against artist thumbs -->

</root>

(https://i.imgur.com/VZXrT3s.png)   (https://i.imgur.com/bSIxRWY.png)
(https://i.imgur.com/3smNfIF.png)   (https://i.imgur.com/wkhYmCG.png)

You could use the c# file watcher to monitor new or updated files in the cache folders
Thanks Steven, the automation will help things a lot. Haven't gotten it to work reliably as yet though.
This I still haven't gotten to, so you will still need to use the Reprocess Artwork hotkey to update any 'new' artwork placed in the cache folders.
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 07:08:04 PM
What's the correct way to install the plugin?
Title: Re: Rounded Artwork
Post by: karbock on January 03, 2025, 07:21:20 PM
What's the correct way to install the plugin?
- Download the .ZIP file containing the plugin.
- Within MusicBee, select Preferences -> tab 'Plugin' -> button 'Add Plugin...' -> select the .ZIP file.
The rest will be done for you automatically.

Location of the plugin settings:
* Portable version: (MusicBee application path)\AppData\mb_RoundedArtwork\skins
* Installed version: %APPDATA%\MusicBee\mb_RoundedArtwork\skins
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 07:32:45 PM
Thanks.

I'll try it that way.

I had unzipped the folder and pointed the rounded artwork dll for install. But that way didn't seem to automatically copy the image magik dll.
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 08:40:31 PM
Ok I think it's installed correctly this time  ::)


I'm getting this artifact (lighter colors) at the border of the image:


(https://i.imgur.com/R5rPEgg.png)

Here are my settings:
Code
<?xml version="1.0" encoding="utf-8"?>
<root>

<element id="Corners" enabled="true" rd="9" bg="192,192,192"/>   <!-- rounded edges -->
<element id="Shadows" enabled="true" blur="4" opacity="255" fg="180,180,180"/>   <!-- shadow effect -->
<element id="Shear" enabled="false" x="10" y="15"/>   <!-- create parallelogram -->
<element id="Tint" enabled="true" fg="255,255,255" r="0" g="0" b="0"/>   <!-- hue effect -->
<element id="Sharpen" enabled="true"/>   <!-- improve artwork quality -->
<element id="Sepia Tone" enabled="false"/>   <!-- gold-like effect -->
<element id="Grayscale" enabled="false"/>   <!-- black and white effect -->
<element id="ArtistThumbs" enabled="false"/>   <!-- applies the above against artist thumbs -->

</root>

The background of the panel is 192,192,192
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 03, 2025, 09:09:50 PM
I'm getting this artifact (lighter colors) at the border of the image:
I almost called you crazy. It wasn't until I maxed out the zoom where I ended up noticing it.
Are you positive that it is not a border generated by MusicBee?
Go to your cache folder and examine the artwork from there to see if the frame's present.
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 09:24:26 PM
Dang it! You're right. It's MusicBee's fault:

(https://i.imgur.com/w0ANg87.png)

left= rendered

right=image in cache

I also verified that my skin has no artwork frame:

Code
<element id="UseArtworkBorders">false</element>
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 10:52:10 PM
Some more investigation:

I think it's some kind of hardcoded filter MusicBee overlays on top of the image to make it pop more. It seems to render where it's not fully transparent.

For example here I replaced the cached image (on the right) and made it so it's resized from 265x265 to 200x200 but still on a 265x265 canvas. And the effect overlayed on the image (left)

But it doesn't take into account potential rounded corners or shadows/glow unfortunately.

(https://i.imgur.com/secRUb8.png)
Title: Re: Rounded Artwork
Post by: Haste on January 03, 2025, 11:37:22 PM
With some googling and help from chatgpt I got an Image Magick command that seems to work to round corners without the "fuzzy lines" issue.

Since you are making use of Image Magick now, maybe this can be implemented?

Code
magick Cover.jpg ( +clone -alpha extract -draw "fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0" ( +clone -flip ) -compose Multiply -composite ( +clone -flop ) -compose Multiply -composite ) -alpha off -compose CopyOpacity -composite Cover_with_rounded_corners.png

Results:

(https://i.imgur.com/nckdKAv.png)
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 04, 2025, 06:23:59 AM
With some googling and help from chatgpt I got an Image Magick command that seems to work to round corners without the "fuzzy lines" issue.
Since you are making use of Image Magick now, maybe this can be implemented?
Code
magick Cover.jpg ( +clone -alpha extract -draw "fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0" ( +clone -flip ) -compose Multiply -composite ( +clone -flop ) -compose Multiply -composite ) -alpha off -compose CopyOpacity -composite Cover_with_rounded_corners.png
It's something I had looked at when I first started using their library, but had decided to drop the idea due to its complexity.
As short as the command line arguments are, the translation to .NET is painfully difficult for someone starting out.

I have a little understanding of it now though. So for comparison, here's the C# method for the same function above:
I will let you know once I upload an updated plugin version (right now I'm going to integrate the skin settings).

Code
using (MagickImage orig = new MagickImage(imageToByte(origFile)))
{
IMagickImage clone = orig.Clone();
clone.Alpha(AlphaOption.Extract);

clone.Draw(new DrawableFillColor(MagickColors.Black),
          new DrawablePolygon(new PointD[] { new PointD(0, 0), new PointD(0, 15), new PointD(15, 0) }),
          new DrawableFillColor(MagickColors.White),
          new DrawableCircle(15, 15, 15, 0));

IMagickImage clone2 = ((MagickImage)clone).Clone();
clone2.Flip();
clone.Composite(clone2, CompositeOperator.Multiply);

IMagickImage clone3 = ((MagickImage)clone).Clone();
clone3.Flop();
clone.Composite(clone3, CompositeOperator.Multiply);

clone.Alpha(AlphaOption.Off);
orig.Composite(clone, CompositeOperator.CopyAlpha);
orig.Write(origFile);

clone.Dispose();
clone2.Dispose();
clone3.Dispose();
}
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 04, 2025, 07:59:48 AM
Since you are making use of Image Magick now, maybe this can be implemented?
This has been done in v1.7 up for download.
Oh and it turns out I don't have to make use of a temporary folder anymore, so that's gone too.

And yes, the edges are looking much more sharper than earlier.
(https://i.imgur.com/YQL0TxF.png)
Title: Re: Rounded Artwork
Post by: Artesoll on January 11, 2025, 10:46:22 PM
Is it possible that the function is not applied to the album as shown in figure 1. or that these borders can use the skin color?
(https://www.dropbox.com/scl/fi/37w178az6dmhzne56p25r/image.jpg?rlkey=g2qhw933syj1y0pnt6eelapmj&st=6uxxlzka&dl=1)


Are these edges as shown in the figure part of the Plugin or the skin?
(https://www.dropbox.com/scl/fi/0bf0cvpz7qed58ujgzlmr/image-2.jpg?rlkey=mtemk5bz5z0nfk43j3ihdppxv&st=oiktyrdi&dl=1)



I would appreciate it if you could help, if you can't that's no problem.
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 13, 2025, 06:49:28 PM
#1   Is it possible that the function is not applied to the album as shown in figure 1. or that these borders can use the skin color?
#2   Are these edges as shown in the figure part of the Plugin or the skin?
For number 2, those borders are displayed by MusicBee. See here on how to turn them off:
https://getmusicbee.com/forum/index.php?topic=42252.0

For number 1, I am aware of that one. It's due to the JPG format displayed in that view not supporting transparency (which I'm guessing is what you're using right now).
So if you go to your skin file and change the corners_bg element from r,g,b to a colour such as 255,0,0 (rgb format for red), that should override the black background.
If the override doesn't kick in, let me know - I have a feeling it might not in the last version released.

Also, as a general note to the transparency that is applied on the artwork:
Please note that certain views like the expanded panel here use a .jpg format which unlike .png does not support transparency (hence the enforced black border below):
(https://i.imgur.com/uwp96VV.png)
Title: Re: Rounded Artwork
Post by: boroda on January 13, 2025, 11:45:18 PM
@Mayibongwe, great plugin, but can you make UI for configuring plugin settings?
Title: Re: Rounded Artwork
Post by: Artesoll on January 15, 2025, 12:45:40 AM
#1   Is it possible that the function is not applied to the album as shown in figure 1. or that these borders can use the skin color?
#2   Are these edges as shown in the figure part of the Plugin or the skin?
For number 2, those borders are displayed by MusicBee. See here on how to turn them off:
https://getmusicbee.com/forum/index.php?topic=42252.0

For number 1, I am aware of that one. It's due to the JPG format displayed in that view not supporting transparency (which I'm guessing is what you're using right now).
So if you go to your skin file and change the corners_bg element from r,g,b to a colour such as 255,0,0 (rgb format for red), that should override the black background.
If the override doesn't kick in, let me know - I have a feeling it might not in the last version released.

Also, as a general note to the transparency that is applied on the artwork:
Please note that certain views like the expanded panel here use a .jpg format which unlike .png does not support transparency (hence the enforced black border below):
(https://i.imgur.com/uwp96VV.png)


Maybe one day you'll find a way to make the album cover look normal when displayed below.
(https://www.dropbox.com/scl/fi/z2vyhrt4hh1zhjcscse72/01.png?rlkey=bmdqlgm1ypzbvbssmqdsox7z6&st=xyzx1lpm&dl=1)
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 17, 2025, 12:15:08 PM
Maybe one day you'll find a way to make the album cover look normal when displayed below.
Just so we're on the same page:
Instead of the colour override on the corners, you would like an option to disable the effects on .JPG covers? (seeing as they don't support transparency)

@Mayibongwe, great plugin, but can you make UI for configuring plugin settings?
Sure thing. Will do seeing as there are quite a few options now (will have to borrow BoringName's layout for the settings - his screenshot on the verbeeliser thread looked pretty neat).
A bit busy this weekend though, so might still be some time before I get around to it.
Title: Re: Rounded Artwork
Post by: MusicBorg on January 19, 2025, 06:36:32 PM
I think I know the answer, but just making sure:

Regarding this table (https://getmusicbee.com/forum/index.php?topic=39614.msg214211#msg214211), am I correct to assume that your Greyscale Artwork (https://getmusicbee.com/addons/plugins/524/greyscale-artwork/) plugin doesn't need to be added to it since its functionality now has now been integrated in your Rounded Artwork (https://getmusicbee.com/addons/plugins/523/rounded-artwork/) plugin?
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 20, 2025, 01:02:46 PM
I think I know the answer, but just making sure:
100% correct. Thanks for keeping that categorized table up to date - it must be really useful for a lot of users.
Title: Re: Rounded Artwork
Post by: karbock on January 20, 2025, 01:12:53 PM
@Mayibongwe:

Version 1.7 draws the shadow incorrectly around the artwork.
Example with a dark background and a light "shadow" tone (or rather "halo" in this case):

v1.7
v1.6
(https://i.imgur.com/ZF3CFEE.png)(https://i.imgur.com/xFrzmtL.png)

skin.dat

Code: XML
  <?xml version="1.0" encoding="utf-8" ?> 
- <root>
  <element id="Corners" enabled="true" rd="50" bg="18,12,24" />
- <!--  rounded edges
  -->
  <element id="Shadows" enabled="true" blur="4" opacity="80" fg="200,200,200" />
- <!--  shadow effect
  -->
  <element id="Shear" enabled="false" x="10" y="15" />
- <!--  create parallelogram
  -->
  <element id="Tint" enabled="false" fg="0,0,255" r="60" g="5" b="10" />
- <!--  hue effect
  -->
  <element id="Sharpen" enabled="false" />
- <!--  improve artwork quality
  -->
  <element id="Sepia Tone" enabled="false" />
- <!--  gold-like effect
  -->
  <element id="Grayscale" enabled="false" />
- <!--  black and white effect
  -->
  <element id="ArtistThumbs" enabled="false" />
- <!--  applies the above against artist thumbs
  -->
  </root>
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 20, 2025, 01:35:54 PM
Version 1.7 draws the shadow incorrectly around the artwork.
Example with a dark background and a light "shadow" tone (or rather "halo" in this case):
Thanks for the report (I suspected as much), I was in the process of correcting that - may release an update tonight.
The issue came when I ditched the initial implementation for the much sharper edges.
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 20, 2025, 05:35:37 PM
Version 1.7 draws the shadow incorrectly around the artwork.
I've uploaded a v1.8 - does that help things?
Title: Re: Rounded Artwork
Post by: karbock on January 20, 2025, 06:08:04 PM
I've uploaded a v1.8 - does that help things?
Yes, it's solved, thanks!
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 20, 2025, 06:14:28 PM
No, thank you for confirming my gut feeling - v1.7 had broken 1 or 2 things, but should be alright now.

If the override doesn't kick in, let me know - I have a feeling it might not in the last version released.

Edit:
Also just currently playing around with a perspective change at the moment:
(https://i.imgur.com/FflDT0F.png)
Title: Re: Rounded Artwork
Post by: karbock on January 21, 2025, 07:17:25 AM
It's only when upgrading to 1.7 and 1.8 that I noticed that the rd="..." parameter was not taken into account in 1.6: it applied a shorter radius instead (35px I suppose), which looked fine.
I have now replaced by rd="35" in the .XMLs to get the same result.
Title: Re: Rounded Artwork
Post by: aktor on January 21, 2025, 10:57:10 AM
No, thank you for confirming my gut feeling - v1.7 had broken 1 or 2 things, but should be alright now.

If the override doesn't kick in, let me know - I have a feeling it might not in the last version released.

Edit:
Also just currently playing around with a perspective change at the moment:
(https://i.imgur.com/FflDT0F.png)

Waw you are creative with that plugin. You should get in touch with Steven to implement small changes to MB so you can incorporate those ideas.
Title: Re: Rounded Artwork
Post by: voodoopunk on January 21, 2025, 11:34:12 AM
No, it needs to remain as an optional plug-in.
Title: Re: Rounded Artwork
Post by: Haste on January 21, 2025, 03:30:48 PM
It could be implemented natively as an option.

It would be vastly superior to a plugin.

Title: Re: Rounded Artwork
Post by: hiccup on January 21, 2025, 05:00:01 PM
You should get in touch with Steven to implement small changes to MB so you can incorporate those ideas.
It could be implemented natively as an option.
It would be vastly superior to a plugin.

Why do you guys keep whining and going on and on about about this?
It's only some eye-candy stuff that may may be 'fun' for some users.
But it is in no way a factual improvement.
On the contrary, it is deforming artwork as it was intended by the artist.
So in that sense it's a regression.

Steven should not be nagged or bothered with implementing and maintaining something like that.

Just be grateful that Mayibongwe has created, and is serving you with a great plugin for this?


Quote from: Haste
It would be vastly superior to a plugin.
I'm sure it's not intended as such, but it doesn't come across as a nice comment towards what Mayibongwe has created for you.
Title: Re: Rounded Artwork
Post by: Haste on January 21, 2025, 10:50:59 PM
Quote
Why do you guys keep whining and going on and on about about this?

Could you please point me to where I've been whining?

Quote
I'm sure it's not intended as such, but it doesn't come across as a nice comment towards what Mayibongwe has created for you

I trust that Mayibongwe will interpret my comment reasonably and won’t overanalyze or misinterpret its intent.
Title: Re: Rounded Artwork
Post by: Artesoll on January 23, 2025, 03:28:14 AM
I think that when you think about any functionality, you think about what it's for and who it's for!
When I thought about this idea of ​​rounding the edges, it was usually to soften the edges, something I saw on Spotify that I thought gave it a clean look.

In the end, it's all about design, what you can and can't do, from the early days of Winamp with its visually striking Skins, and not to mention the Zune player that created a unique look for covers. Finally, iTunes with the spectacular Cover Flow that, with a black Skin that it supported at the time, was something extremely beautiful. Until finally displaying the cover below with the list of songs.

what makes a player stand out are its features, no matter how silly they may be, and the beauty of an interface counts for a lot, a fact that made Audivana a spectacularly beautiful player.

Time goes by and today I can't even think about Mp3 320 Kbps, everything bothers me, and everyone looks for what attracts them in a music player, whatever it may be. I've used so many and I don't even know why players fascinate me so much, but I can assure you that each one has a limitation when it comes to interface, and in a few months a dedicated group managed to create VU meter, Cool edit Nostalgia and Rounded covers.

The question is, does Musicbee need annoying people like me who charge for these things? Or should we just stop now and settle for Foobar or Aimp or Windows media player that in theory "Play Music"?

We can never give up on foolish things, otherwise we would never have seen the Itunes Coverflow. It is necessary because it challenges the creator, I wish I knew programming like you know, that's why I admire and value it.
Musicbee can be everything, I can have a clean look today, just as someone else can have a fuller look.

What matters in the end is keeping Musicplayers alive and what can be done next and later. I just have to thank those who create.

This plugin considerably increased the distance between the covers and it was great.
https://www.dropbox.com/scl/fi/42m8q6zdrqr0upjjixd1z/Rounded.png?rlkey=76iahei4mmv1vpujdawj9vk8r&st=ef9x6yd5&dl=0
Title: Re: Rounded Artwork
Post by: hiccup on January 24, 2025, 05:47:22 PM
I trust that Mayibongwe will interpret my comment reasonably and won’t overanalyze or misinterpret its intent.
You will probably be right.
Achilles (AKA Mayibongwe) is probably far less sensitive and much more lenient to stuff like this than I am after all these years ;-)

But the core reason for me ventilating my 'annoyance' still stands.
After requests by a couple of users for having some  'rounded artwork' feature, and then some experienced MusicBee users explaining why that would not be a valid suggestion for factual improvement, Achilles (AKA Mayibongwe) has made the effort to create a great plugin that allows for what was asked for.

So I indeed will get annoyed that after all that, some users are still asking for/complaining (or whining, my choice of words) that it should be integrated and implemented into MusicBee by MusicBee's developer, and that that would be much better than what Achilles (AKA Mayibongwe) has created for you guys to enjoy.

So yes, to me that comes across as a bit ungrateful, and unappreciative of both Steven's and Achilles's (AKA Mayibongwe's) work and considerations.
Title: Re: Rounded Artwork
Post by: Haste on January 24, 2025, 09:12:56 PM
Mockup / Idea: Neumorphism-Inspired Design:

I’ve been working on a MusicBee skin recently and spent some time exploring different design styles for inspiration. One trend that caught my attention is Neumorphism, which gained some popularity around 2020.


Here’s a quick mockup to give you an idea of what I mean:
(https://i.imgur.com/woqEg0e.png)

The main idea behind this style is to create a soft, extruded appearance. This is achieved by combining two drop shadows: a darker shadow placed on one corner and a lighter shadow on the opposite corner.

The light source is typically set to come from the top left, and rounded corners are often used to enhance the effect. For extra clarity, a stroke can be added. Here’s a breakdown of the style in Figma:

(https://i.imgur.com/s451JaJ.png)

It seems like this effect could be replicated in the plugin by layering multiple drop shadows with custom positions.

This setup requires 10px margins around the element to accommodate the shadows. Unfortunately ,without a way to render the shadows outside the standard dimensions of the cover image, album covers will end up looking significantly smaller, which is not ideal.

Note that I've used full-resolution cover art for the mockup, so it’s not representative of how it would look with cached images in MusicBee. I’ve noticed you’ve added a sharpening filter to address quality issues with cached images, but I was wondering if it would be possible for the plugin to access the original album cover images (either embedded or linked) and resize them directly. This could help preserve better image quality and avoid artifacts when scaling cached images.
Title: Re: Rounded Artwork
Post by: BoringName on January 24, 2025, 11:44:52 PM
The only real benefit of supporting things natively is it removes the risk of a developer going awol and it no longer functioning.

The flip side to that is you are adding more to the pile for one person to support.

I'm 100% certain Steven could program my addons better than me as I just don't have the same experience. But I'm also 100% sure I have a lot more free time than he does so I can put more time into them.

We are spoiled with how active he is on here. I can't think of a single piece of software I've used where the developer will provide a patch to fix a non critical bug within hours of it being reported and do that consistently. He is also very quick to respond to plugin creator queries which is another reason not everything needs to be natively supported.

Just to keep things on topic. While some of the purists might not like it, those skewed images do look cool. More things for me to possibly incorporate into 3DBee.
Title: Re: Rounded Artwork
Post by: voodoopunk on January 25, 2025, 09:01:53 AM
The only real benefit of supporting things natively is it removes the risk of a developer going awol and it no longer functioning.

The flip side to that is you are adding more to the pile for one person to support.
Plus, bloatware and extra complexity/controls for the people who will never use it.
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 25, 2025, 07:40:20 PM
Because I intend to be here on the forum for a good time and a long time, I tend to refrain from engaging in discussions where people seem to hold very strong differences in principle.
MB is a part of my almost daily life, so naturally, any 'bad day' here would spoil a bit of the day outside the forum - that's why I don't read/think too much into the little things.
Without getting too much into it, I know that users like to find comfort in software that carries an "official" badge (good rule of thumb generally), but for a solo project like MusicBee:

we would only be adding more to the pile for one person to support.
___________________

Mockup / Idea: Neumorphism-Inspired Design:
Thanks, I will play around with this (as mentioned before though, may be some time before I get to it).
While a mixture of black and white shadows won't do it on my primary skin, I think other colours will be a nice sight! (that's not to say I'll hardcode any colouring).

I was wondering if it would be possible for the plugin to access the original album cover images (either embedded or linked) and resize them directly.
This could help preserve better image quality and avoid artifacts when scaling cached images.
That's not going to be, given the filenaming structure (https://i.imgur.com/3KL6EEj.png) that MB is using on the cached artwork.
I could get the original artwork, but won't be able to link it back to the corresponding filename that MB expects for that particular album.
Title: Re: Rounded Artwork
Post by: Artesoll on January 26, 2025, 11:47:16 PM
After update 1.8 the images below the album looked like this, and sometimes giving an error. I thought it would be a good idea to uninstall it, but I'll have to download all the covers again one by one. Anyway, the main covers were great, but who knows in the future.
(https://www.dropbox.com/scl/fi/6ndw90nsl8kzgf3wsahdq/TESTE.png?rlkey=yomdodmkaygyrybecvx24xz9w&st=v28xb1b6&dl=1)
Title: Re: Rounded Artwork
Post by: Haste on January 27, 2025, 12:03:04 AM
To avoid this issue in the future you can backup the content of the album art cache:
Code
%localAppData%\MusicBee\InternalCache\AlbumCovers

You can backup the content of the artists thumbs cache as well (if you are applying the plugin to artist pictures)
Code
%localAppData%\MusicBee\InternalCache\ArtistThumbs

Another tip for using the plugin and tinkering with the different settings is to empty that cache before each change. (with MusicBee closed)
This also applies before changing to another skin.

Otherwise you will get images that are processed several times.
Title: Re: Rounded Artwork
Post by: Mayibongwe on January 31, 2025, 05:07:26 PM
Another tip for using the plugin and tinkering with the different settings is to empty that cache before each change. (with MusicBee closed)
This also applies before changing to another skin.
Otherwise you will get images that are processed several times.
Yes, right on the mark Haste. When one changes a plugin setting or switches skins, the plugin detects that as a need to reprocess the artwork.
I can add another setting so that users can decide whether or not they want this enabled by default. Will you want this Artesoll?
Title: Re: Rounded Artwork
Post by: Mayibongwe on February 06, 2025, 08:08:12 PM
Mockup / Idea: Neumorphism-Inspired Design:
(https://i.imgur.com/woqEg0e.png)   (https://i.imgur.com/s451JaJ.png)
Thanks, I will play around with this (as mentioned before though, may be some time before I get to it).
While a mixture of black and white shadows won't do it on my primary skin, I think other colours will be a nice sight! (that's not to say I'll hardcode any colouring).
Still early stages, there's touchups to be done...
but is this something like what you have in mind?
(https://i.imgur.com/UNA9TFU.png)
Title: Re: Rounded Artwork
Post by: Mayibongwe on February 06, 2025, 08:44:54 PM
I really like how those hybrid shadows are turning out:

(https://i.imgur.com/9iLvfLh.png)
Title: Re: Rounded Artwork
Post by: cereal_eater on March 28, 2025, 11:07:57 PM
This plugin seems great, but before I try it, I have some questions:

I use Folder.jpg in every folder. Will the rounded effect only apply to *.png files?
Are there black corners in the expanded view in Album Covers view in the main panel, or will there just be no rounded effect then?

Thanks!
Title: Re: Rounded Artwork
Post by: hiccup on March 29, 2025, 09:38:00 AM
This plugin seems great, but before I try it, I have some questions:
Why not install the plugin and see for yourself if things are as you would like them to be?
If they are not, then simply remove the plugin again.
(or make suggestions for 'improvements')
Title: Re: Rounded Artwork
Post by: boroda on June 17, 2025, 06:16:00 PM
as for discussion above about the integration of this plugin into MB: this plugin should be a plugin only. BUT! some Steven's assistance might be useful, e.g. replacement of jpg files to pngs (to support transparency) in some places.