I don't think @Incognito that you got my point
. Let me break that up a bit for clarity:
1. The Album Cover is dynamic and changes as per the track and player. It has nothing to do with the static paths/filenames.
2. The Plugin can 'extract' the color accurately. It is not affected by png or jpg in my scenario atleast.
3. The Skin needs a 'Refresh' after a cover is changed to change the stored colors.
4. The Alpha values have been removed as I change the opacity - for the font's color it is normal, but, for the border-effect it is lower than full. However, if it is affecting the outcomes, then I'll happily remove that part or use different measures for the same.
Now, since I aptly discussed the problem, and proposed a solution that I thought could work, I don't see any other way to explain this any further than it already has been.
I did set the static paths for images (not covers*) - both jpg and png, but, it was working like it should. Can you explain what do you mean by "...if you comment the former and uncomment the latter, you'll see what I mean."?
*Not covers - Rainmeter leads the path to a .tmp file (seen in the About Skin Interface). AIMP leads to a file that is created only when it is clicked (unsure where it is stored earlier) as Title_of_the_Song.jpg/png.
Edit: A better test skin - Loads cover - retrieves all colors on test-texts, if not available, red, green, blue and grey are shown. This test will use only the cover from the song playing and not some static file. This is to show that if none of the colors match the cover, refreshing will change them to the way they should have been extracted.:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
---Measures---
[MeasureCover]
Measure=PLUGIN
Plugin=NOWPLAYING
PlayerName=AIMP
PlayerType=COVER
[CoverColor]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
RegExpSubstitute=1
Substitute=",(255)$":"","":"255,0,0"
DynamicVariables=1
[CoverColor1]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
ColorType=Accent1
RegExpSubstitute=1
Substitute=",(255)$":"","":"0,255,0"
DynamicVariables=1
[CoverColor2]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
ColorType=Accent2
RegExpSubstitute=1
Substitute=",(255)$":"","":"0,0,255"
DynamicVariables=1
[CoverColorBG]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
ColorType=Background
RegExpSubstitute=1
Substitute=",(255)$":"","":"125,125,125"
DynamicVariables=1
---Meters---
[MeterBackground]
Meter=Shape
Shape=Rectangle 2,2,110,110,4 | Fill Color 0,0,0,200
DynamicVariables=1
[MeterCover]
Meter=Image
MeasureName=MeasureCover
X=[MeterBackground:X]
Y=[MeterBackground:Y]
W=[MeterBackground:W]
H=[MeterBackground:H]
DynamicVariables=1
[MeterTest]
Meter=String
X=([MeterCover:X]+[MeterCover:W])
FontSize=15
FontColor=[CoverColor]
Text=Test0
DynamicVariables=1
AntiAlias=1
[MeterTest1]
Meter=String
X=([MeterTest:X])
Y=([MeterTest:Y]+30)
FontSize=15
FontColor=[CoverColor1]
Text=Test1
DynamicVariables=1
AntiAlias=1
[MeterTest2]
Meter=String
X=([MeterTest:X])
Y=([MeterTest1:Y]+30)
FontSize=15
FontColor=[CoverColor2]
Text=Test2
DynamicVariables=1
AntiAlias=1
[MeterTest3]
Meter=String
X=([MeterTest:X])
Y=([MeterTest2:Y]+30)
FontSize=15
FontColor=[CoverColorBG]
Text=Test3
DynamicVariables=1
AntiAlias=1