Page 1 of 1

Thumbnailler / Cropper

Posted: Sat 14 Feb 2015 2:59 am
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

Re: Thumbnailler / Cropper

Posted: Sat 14 Feb 2015 5:19 am
by ace2
Very nice..... :clap:

Re: Thumbnailler / Cropper

Posted: Sat 14 Feb 2015 10:56 am
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.

Re: Thumbnailler / Cropper

Posted: Thu 19 Feb 2015 12:27 pm
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 ...

Re: Thumbnailler / Cropper

Posted: Thu 19 Feb 2015 12:42 pm
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!!!