Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Thumbnailler / Cropper

Hardware/software/hints and tips/discussion/webcam links etc
Post Reply
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

Thumbnailler / Cropper

Post by beteljuice »

The beteljuice has been playing again !

Whilst on another project it was mentioned they couldn't get a decent thumbnail to show current conditions (hint).

Easy with php said the betejuice, It might be for you said the other.

So, the beteljuice has put something together where you can select your thumbnail size and easily pick the area of your (large) webcam pic that you want for a thumb.
This might be square or a vertical rectangle rather than the usual horizontal rectangle, depending upon what reference points you want displayed and your page layout.

> Another beteljuice plaything <

From the page:

There are several ways that the cropped thumbnail can be achieved.
This will give the code for TWO different methods.

Pure CSS
Pros:
  • NO php requirement
    Original image is loaded in the page and thus available eg. could be a full screen option.
Cons:
  • Original image is loaded in the page, this could significantly affect download time !.
PHP Thumbnailer
Pros:
  • Simple image call
    Small upload in the page.
Cons:
  • None really.
Code for both the CSS method and a 'personal' PHP file will be created for you to cut 'n' paste.
Which you chose is up to you !

It may not work for all, tough :P
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: Thumbnailler / Cropper

Post by ace2 »

Very nice..... :clap:
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Thumbnailler / Cropper

Post by captzero »

Good job Beteljuice.
I'm using the css version here: http://www.brisbaneliveweather.com/trop ... calwebcams
It incorporates the latest IR sat image (cropped from a much larger image) which has been overlaid with links to webcams.
I was doing the same thing but via different means. This is a much simpler and more efficient way.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
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: Thumbnailler / Cropper

Post by beteljuice »

The beteljuice is just a little 'miffed' :cry:

Having used some members webcam links for testing purposes I know there is a use for a 'concentrated' thumbnail facility.

... but as yet only a very few have even played with it :shock:

... think I'll go for a lie down, came out of hibernation too early ...
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: Thumbnailler / Cropper

Post by ace2 »

I was going to use it, but couldn't find a use for it in the end.
But hang in there, I'm sure heaps of people will start using it!!!
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
Post Reply