It is currently March 28th, 2024, 3:02 pm

Some PNG files won't display

Report bugs with the Rainmeter application and suggest features.
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Some PNG files won't display

Post by tommasz1 »

For some reason certain PNG files won't display and I can't figure out why (see attached). I've seen this in other skins but the example is from Hero. The files exist and the code in the .ini is identical across all four of them but only two display the background PNG. This was a problem in 4.0 and I just upgraded to the 4.1 beta but no change. Any ideas?

Windows 7 SP1.
Attachments
PNG Problem.PNG
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some PNG files won't display

Post by jsmorley »

Can you attach an image that won't display?
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

Sure. In this skin the file is the same across all four and has the same name.
Attachments
bot200.png
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some PNG files won't display

Post by jsmorley »

Dunno. Image works fine for me.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeterImage]
Meter=Image
ImageName="C:\DN\bot200.png"
1.png
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some PNG files won't display

Post by jsmorley »

I suspect you have some typo in either ImagePath or ImageName on those first two sections in the picture of the skin(s) you posted.

You might look at About / Log to see if you are getting any error messages.

https://docs.rainmeter.net/manual/user-interface/about/#LogTab
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

jsmorley wrote:I suspect you have some typo in either ImagePath or ImageName on those first two sections in the picture of the skin(s) you posted.
As jsmorley said, probably there is a conflict or typo. tommasz1, could you please post the [Rainmeter] sections of all four skins?
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

Attached the headers from all four .ini files and the ImageName section from one .ini that works and one that doesn't.

Note: No ImagePath is used and all the PNG files are in the same directory as the .ini.

Code: Select all

========================================================================================
Headers:
;======================================================================================= 
; 
; Arkan Tab for Rainmeter
; Drive Information
; http://aidaaah.deviantart.com
;
;=======================================================================================


[Rainmeter]
Author=aidaaah@rocketmail.com
AppVersion=1.1
Update=60000

MouseOverAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]


[Metadata]
Name=Drive Information | Bottom
Config=ArkanTab | Drive Info | Drive - Bottom
Description=Drive Information
Instructions=Change drive letters in [Variable] section.
Version=1.0
Tags=Drive | Information | Arkan | Tab | aidaaah | ;)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Arkan Tab\Preview.png

;======================================================================================= 
; 
; Arkan Tab for Rainmeter
; Network Information
; http://aidaaah.deviantart.com
;
;=======================================================================================


[Rainmeter]
Author=aidaaah@rocketmail.com
AppVersion=1.1
Update=1000

MouseOverAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]


[Metadata]
Name=Network Information | Bottom
Config=ArkanTab | Network Info | Network - Bottom
Description=Network Information
Instructions=
Version=1.0
Tags=Network | Information | Arkan | Tab | aidaaah | ;)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Arkan Tab\Preview.png

;======================================================================================= 
; 
; Arkan Tab for Rainmeter
; System Information
; http://aidaaah.deviantart.com
;
;=======================================================================================


[Rainmeter]
Author=aidaaah@rocketmail.com
AppVersion=1.1
Update=1000

MouseOverAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]


[Metadata]
Name=System Information | Bottom
Config=ArkanTab | System Info | System - Bottom
Description=System Information
Instructions=
Version=1.0
Tags=System | Information | Arkan | Tab | aidaaah | ;)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Arkan Tab\Preview.png

;======================================================================================= 
; 
; Arkan Tab for Rainmeter
; System Resources
; http://aidaaah.deviantart.com
;
;=======================================================================================


[Rainmeter]
Author=aidaaah@rocketmail.com
AppVersion=1.1
Update=1000

MouseOverAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]


[Metadata]
Name=System Resources | Bottom
Config=ArkanTab | System Resources | System Resources - Bottom
Description=System Resources
Instructions=
Version=1.0
Tags=System | Resources | Arkan | Tab | aidaaah | ;)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Arkan Tab\Preview.png

=================================================================================
ImageName sections

[Background]
Meter=IMAGE
X=0
Y=0
ImageName=bot200.png
;H=200
;W=200
Hidden=1


[Background]
Meter=IMAGE
X=0
Y=0
ImageName=bot200.png
;H=200
;W=200
Hidden=1
Last edited by fonpaolo on September 20th, 2017, 7:04 pm, edited 1 time in total.
Reason: Please use the [code] tags to display your code
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some PNG files won't display

Post by jsmorley »

What happens when you remove the Hidden=1 on the meters?
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

Nothing happens. I also tried changing it to 0 and 2 and nothing happen either.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

tommasz1 wrote:Attached the headers from all four .ini files and the ImageName section from one .ini that works and one that doesn't.

Note: No ImagePath is used and all the PNG files are in the same directory as the .ini.
Sorry posted my reply too late...

The posted codes don't have Background options in their [Rainmeter] sections, as I thought they have. So, the background images are added probably through image meters. In fact this is probably true, because the code of the System Resources has a [Background] image meter, which contains the not shown image. As jsmorley said, try first to remove its Hidden=1 option. Check all codes which don't show the background, looking for the same [Background] image meters and remove the Hidden=1 option everywhere. Does this help?
Post Reply