It is currently April 26th, 2024, 3:15 pm

Why is image meter not working ?

Get help with creating, editing & fixing problems with skins
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Why is image meter not working ?

Post by Alloutofmercy »

Hello, I am new to rainmeter and creating skins. I was trying out this but the image is not at all visible

Code: Select all

[MetetLaunchimage]
Meter=image
Image=#@#Images\jack_sparrow-wallpaper-960x540.png
W=200
H=400
X=50
Y=100
BOOTY
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Why is image meter not working ?

Post by ikarus1969 »

Hi!

I think the error is that there's no "Image" property of the Image-meter. Just "ImageName" and/or "ImagePath".
Please read the docs: https://docs.rainmeter.net/manual/meters/image/

And would you please post always the whole skin (preferable as an rmskin package), or as an complete, runnable source-code so we could test it properly? Thank you!
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Why is image meter not working ?

Post by Alloutofmercy »

This be proper, but still I cannot see the image.

Code: Select all

[Meterimage]
Meter=Image
Imagename=#@#\Images\blackpearl.png
X=100
Y=100
W=75
H=150
BOOTY
User avatar
Active Colors
Moderator
Posts: 1254
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Why is image meter not working ?

Post by Active Colors »

Alloutofmercy wrote: November 17th, 2021, 10:10 am This be proper, but still I cannot see the image.

Code: Select all

[Meterimage]
Meter=Image
Imagename=#@#\Images\blackpearl.png
X=100
Y=100
W=75
H=150
Can you post the whole code of your skin?
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Why is image meter not working ?

Post by CodeCode »

Things to do, to debug.

Make sure there are no duplicate [meter names]

Make sure the image is in the correct path #@#Image.jpg meaning the image is in the @Resources folder.
If the image is elsewhere, then the path is needed,
or the image is in the same folder as the skin ini file, then just the imagename.jpg sould work.

Are you refreshing the skin after making changes?

this excerpt from the manual should help:

Code: Select all

[MeterBackground]
Meter=Image
ImageName=#@#Images\Background.jpg
W=200
H=200
GreyScale=1
ImageTint=171,54,3,150
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Why is image meter not working ?

Post by Alloutofmercy »

Here, I tried your code, but it still the same. Probably Rainmeter is broken. Here is my full source code...

Code: Select all








[Rainmeter]
Update=1000
AccurateText=1



[Metadata]
Name= XOXO
Author= 
Information= 
Version= 1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
bluesky=0,164,252,255
Blacksea=6,5,18,25
Creamyred=255,105,105											   
 [Meterstring]
 Meter=string
 text="Welcome to the caribean love"
 Fontface= Caribbean
 Fontsize= 18
 Fontcolor=#Creamyred#
 X=50
 Y=100

[Meterbackground]
Meter=image
X=50
Y=100
W=450
H=400
Solidcolor=#Blacksea#
Meter=close

[MeterBackground]
Meter=Image
ImageName=jacksparrow.jpg
W=200
H=200
GreyScale=1
ImageTint=171,54,3,255

 




BOOTY
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Why is image meter not working ?

Post by jsmorley »

You can't have two sections both named [MeterBackground]
User avatar
balala
Rainmeter Sage
Posts: 16173
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Why is image meter not working ?

Post by balala »

Alloutofmercy wrote: November 17th, 2021, 3:29 pm Here, I tried your code, but it still the same. Probably Rainmeter is broken.
I doubt it would be. But note a few things:
  • As jsmorley wrote there are two [MeterBackground] meters, one after the other. In such a case the second one is ignored by Rainmeter. Change its name, to something which is not used into your code, for instance [MeterBackground2] (also noticed by CodeCode above).
  • The above posted code doesn't contain a meter named [Meterimage], nor a [MetetLaunchimage], as the ones in your previous posts. This is not a problem, however question is where those meters have been used.
  • Make absolutely sure you have the appropriate image files, into the appropriate folders. For instance to get the last posted code working (showing up the image), you have to have an image called jacksparrow.jpg, into the config, near the skins .ini file. Is it there and if it is, its is shown properly (because I'm not sure anymore which image is not shown from the posted three)?
  • Follow the log. If the image is not in the proper location, the log will show a ImageName: Unable to open: PATH-OF-CONFIG\@Resources\Images\blackpearl.png (SKIN) error message. This indicates you the reason of why the image is not shown.
  • This definitely doesn't prevents the image to be shown, however there is an invalid option on the first (the top one) [Meterbackground] meter. I'm talking about the last Meter=close option, which is not a valid option. but this is not an issue in this case, because the Meter option is duplicated and such in a case the first occurrence is working, the second one is simply ignored by Rainmeter. However I still suggest you to remove the Meter=close option.
Does it work now? Is the image shown?
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Why is image meter not working ?

Post by Alloutofmercy »

Yay ! It worked ! I had to replace [Meterbackround] with [Meterbackgroung2]
Thanks guys :rosegift:
This is the first forum in which people reply so fast
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 16173
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Why is image meter not working ?

Post by balala »

Alloutofmercy wrote: November 17th, 2021, 5:47 pm Yay ! It worked ! I had to replace [Meterbackround] with [Meterbackgroung2]
Great, I'm glad. :thumbup:
Alloutofmercy wrote: November 17th, 2021, 5:47 pm This is the first forum in which people reply so fast
We indeed have here a great and helpful community.