Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Making picture.jpg fit screen

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Steve Willington
Posts: 58
Joined: Sat 11 Dec 2010 4:51 pm
Weather Station: Davis VP2 FARS
Operating System: Windows 10
Location: Devon
Contact:

Making picture.jpg fit screen

Post by Steve Willington »

I'd like to use my own picture as a back ground. That has not proved a problem but what I'd like is to use it like a water mark that fits the whole screen. Any ideas?

Steve.
www.rockbeareweather.co.uk
werribee_au
Posts: 338
Joined: Mon 08 Jun 2009 6:25 am
Weather Station: WH-1081 (Jaycar Digitech XC0348)
Operating System: XP SP3
Location: Wyndham Vale, Vic, Australia.
Contact:

Re: Making picture.jpg fit screen

Post by werribee_au »

Is this the sort of thing you want to do?
You do not have the required permissions to view the files attached to this post.
Steve Willington
Posts: 58
Joined: Sat 11 Dec 2010 4:51 pm
Weather Station: Davis VP2 FARS
Operating System: Windows 10
Location: Devon
Contact:

Re: Making picture.jpg fit screen

Post by Steve Willington »

Yes, exactly and then to use that in the style sheet as a back ground, one that fills the screen, rather than the lower LH quarter.

Steve.
www.rockbeareweather.co.uk
werribee_au
Posts: 338
Joined: Mon 08 Jun 2009 6:25 am
Weather Station: WH-1081 (Jaycar Digitech XC0348)
Operating System: XP SP3
Location: Wyndham Vale, Vic, Australia.
Contact:

Re: Making picture.jpg fit screen

Post by werribee_au »

I can help you with the image and maybe someone else can help you with the css (I don't want to give you a bum steer :) )

You can use a photo editor like the free paint.NET program
http://www.dotpdn.com/files/Paint.NET.3.5.6.Install.zip

load the image and then select Adjustments, Hue/Saturation and adjust the lightness.
You do not have the required permissions to view the files attached to this post.
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Re: Making picture.jpg fit screen

Post by sanramonrover »

In case no one else chimes in, here's what I did:
after making the picture as transparent as you want, store it in the images folder in Cumulus.

Save your picture as picture.jpg which will overwrite the original. OR name your picture whatever you want -(eg mypicture.jpg) and save it in the images folder.
Then find the weatherstyle.css file - should be in webfiles folder.

See the first paragraph headed "body" - it says
background-image: url(images/picture.jpg);
THEN change the above line to:
background-image: url(images/mypicture.jpg);

That should work.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Making picture.jpg fit screen

Post by beteljuice »

"Choose an image that fills the screen ....."

How big is a screen ?
OK, there is some fancy code you could write to find out and re-size the graphic buts that's OTT.

If it is really is only just obseverable (watermark), than change the weatherstyle.css backgoround properties:

Code: Select all

body {
	background-color: #FFFFFF;
	font-family: Verdana, Helvetica, sans-serif;
	font-size: 10pt;
	color: #585858;
	text-align: left;
	background-attachment: fixed;
	background-image: url(images/picture.jpg);
	background-repeat: no-repeat;
	background-position: left bottom;
}
Simply remove:
background-repeat: no-repeat;
or more correctly change it to:
background-repeat: repeat;

Then the image will be 'tiled' all over the visible screen.
Image
......................Imagine, what you will KNOW tomorrow !
Steve Willington
Posts: 58
Joined: Sat 11 Dec 2010 4:51 pm
Weather Station: Davis VP2 FARS
Operating System: Windows 10
Location: Devon
Contact:

Re: Making picture.jpg fit screen

Post by Steve Willington »

Hi All,

Thanks for the help. I did get as far as tiling the image, and it didn't look too bad, but I would prefer for it to be centred and for it to adjust to the screen size so as to fill it. A bit like a table when you give it a width in percent, 80% always being 80% of the available screen size. Or is that not possible in the case of a background image?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Making picture.jpg fit screen

Post by steve »

CSS 2 doesn't allow for a background image to be stretched to fill the screen, but CSS 3 will have this.
Steve
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Making picture.jpg fit screen

Post by bnwrx »

This may work for you:
background-attachment: fixed;
background-image: url(images/picture.jpg) ;
background-repeat: no-repeat;
background-position:top;

It works for me with this: http://woodlandweather.net/yesterday.htm
Steve Willington
Posts: 58
Joined: Sat 11 Dec 2010 4:51 pm
Weather Station: Davis VP2 FARS
Operating System: Windows 10
Location: Devon
Contact:

Re: Making picture.jpg fit screen

Post by Steve Willington »

Thanks all. I gone with background position; top and made the image larger (1280x) so that it fits most screens. It doesn't change size with screen resolution but it looks OK. Now I just need a decent picture.
Post Reply