It is currently October 14th, 2024, 8:35 pm

Random image viewer through QuotePlugin crops randomly

Get help with creating, editing & fixing problems with skins
beritrep
Posts: 2
Joined: July 23rd, 2010, 10:06 am

Random image viewer through QuotePlugin crops randomly

Post by beritrep »

To help me learn a few charts we use at work, I've made a simple skin based on Moshi's picture frames, showing random charts on my desktop. The charts are saved as transparent png files (they blend in nicely on my desktop), in various sizes and size ratios. My skin resizes all images to a with of 400, but gives no value for height.

The funny thing is, my charts seem to be cropped by a random # of pixels at each update. They all have the right width and the right aspect ratio, but the bottom part gets cropped out, by anything between 0 and roughly 75%.

Has anyone else seen this issue? Any tips on a solution?

My current code:

Code: Select all

[Variables]
ImagePath=D:\DOCUMENTS\My Pictures\EiE\

[Rainmeter]
BackgroundMode=1
Update=300000

[RandomImage]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath#
FileFilter=*.png
Subfolders=1

[Image]
MeasureName=RandomImage
Meter=IMAGE
W=400
poiru
Developer
Posts: 2873
Joined: April 17th, 2009, 12:18 pm

Re: Random image viewer through QuotePlugin crops randomly

Post by poiru »

Try adding DynamicWindowSize=1 under [Rainmeter].
beritrep
Posts: 2
Joined: July 23rd, 2010, 10:06 am

Re: Random image viewer through QuotePlugin crops randomly

Post by beritrep »

Thanks a ton!

The solution was to set a height anyway, and then maintain the aspect ratio. Of course.. ;)

Revised code:

Code: Select all

[Variables]
ImagePath=D:\DOCUMENTS\My Pictures\EiE\

[Rainmeter]
BackgroundMode=1
Update=300000

[RandomImage]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath#
FileFilter=*.png
Subfolders=1

[Image]
MeasureName=RandomImage
PreserveAspectRatio=1
Meter=IMAGE
X=0
Y=0
W=400
H=400
Hidden=0