It is currently May 8th, 2024, 10:26 pm

Slideshow

Get help with creating, editing & fixing problems with skins
brunogasparsc
Posts: 22
Joined: June 28th, 2011, 4:38 pm

Slideshow

Post by brunogasparsc »

Hi! I made the following skin to show pictures on desktop. This works for "landscape" pictures (eg 1024X768), but... is there a way to the skin displays and resize automatically "portait" pictures (eg 768X1024), including the outline?

Code: Select all

[Rainmeter]
Update=60000

[Variables]
ImagePath=F:\pictures
subF=1
fFilter=*.jpg;*.jpeg;*.png;*.bmp

[Slide1]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath#
FileFilter=#fFilter#
Subfolders=#subF#


[Slide1meter]
MeasureName=Slide1
Meter=IMAGE
X=10
Y=14
W=228
H=171
LeftMouseUpAction=!Execute ["[Slide1]"]

[outline]
Meter=IMAGE
X=6
Y=10
W=237
H=178
ImageName=outline.png
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Slideshow

Post by Kaelri »

You can set

Code: Select all

PreserveAspectRatio=1
on the Image meter, but that will stretch the image to the meter's W and H (unless you leave one unspecified, which will allow the meter to "float" according to the aspect ratio of the current image). If you need both dimensions to remain constant, there aren't really any good options for cropping images of varying sizes.

(More.)
brunogasparsc
Posts: 22
Joined: June 28th, 2011, 4:38 pm

Re: Slideshow

Post by brunogasparsc »

Ok, thanks. But isn't there a way to make a command like this:
"If in the original picture W>H, then show a 500x300 picture; if W<H, then show a 300x500 picture"?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Slideshow

Post by Kaelri »

Not with Rainmeter alone. (But I'll bet you anything there's a Lua script that could do it...)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Slideshow

Post by jsmorley »

Where do we plan to get "original picture W" from?