It is currently May 1st, 2024, 3:55 pm

[BUG] !SetWallpaper and .png files

Report bugs with the Rainmeter application and suggest features.
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

[BUG] !SetWallpaper and .png files

Post by KreAch3R »

On the latest beta I'm having trouble setting a .png file as wallpaper with !SetWallpaper !bang. I downloaded and used jsmorley's skin, to eliminate any mistakes in my code (which is working for .jpg).

Here is the code:

Code: Select all

[Rainmeter]
Update=500
Author=JSMorley

[Metadata]
Name=SetWallpaperViewer
Information=Description:|Changes the Windows desktop background (wallpaper) when image viewer clicked on. Middle click to force update of viewer.||Instructions:|.bmp / .jpg / .png / .gif / .tiff files supported.||Set Position to change how Windows displays the image.  XP > Vista supports Centered / Tile / Stretch.  Windows 7 adds Fit and Fill.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Feb 5, 2012

[Variables]
Position=FILL

[MeasureGetWallpaper]
Measure=Plugin
Plugin=QuotePlugin
PathName=C:\Users\KreAch3R\Test\walls
FileFilter=*.jpg;*.png
UpdateDivider=60

[MeterViewer]
Meter=Image
MeasureName=MeasureGetWallpaper
W=200
H=200
PreserveAspectRatio=1
LeftMouseUpAction=!SetWallpaper "[MeasureGetWallpaper]" #Position#
MiddleMouseUpAction=!UpdateMeasure MeasureGetWallpaper
Inside "walls" folder there is only one .png file (I tried 3 different) and is displayed correctly. Does anyone else have this problem or is it a bug?
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: [BUG] !SetWallpaper and .png files

Post by smurfier »

It appears that Windows does not like using png files as wallpaper. Windows itself is supposed to convert them to jpeg before setting the wallpaper.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: [BUG] !SetWallpaper and .png files

Post by KreAch3R »

Aha. I didn't know that. I read in the description that I found about !SetWallpaper that it supports .png files. Was it a small mistake in the description or it will be implemented, just not yet?
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [BUG] !SetWallpaper and .png files

Post by jsmorley »

This has to be some kind of bug in the bang. Windows is fine with .png as a wallpaper.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [BUG] !SetWallpaper and .png files

Post by jsmorley »

This issue has been fixed for the next beta on Sunday.
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: [BUG] !SetWallpaper and .png files

Post by KreAch3R »

Thanks! :)
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image