Author Topic: Image thumbnailer / re-sizer / cropper  (Read 1542 times)

0 Members and 1 Guest are viewing this topic.

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Image thumbnailer / re-sizer / cropper
« on: October 14, 2018, 05:18:35 AM »
Not sure if this is the correct topic, but my first post here so ...

More of a resource than code for you to host ..

Whilst on another project a few year ago someone mentioned they couldn't get a decent thumbnail to show current conditions.

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

So, the beteljuice put something together where you can select your thumbnail size and easily pick the area of your (large) webcam or satellite pic that you want for a thumb. or even enlarge a small area  ;-)
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.

This is really for those who aren't adept at re-sizing with any kind of code - but could always be used as a look-see before commiting yourself to hard coding ..

>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 (personal file)
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 !

the beteljuice likes to try to give something to the forums that he lurks in.
« Last Edit: October 16, 2018, 10:23:02 AM by beteljuice »
Imagine what you will KNOW tomorrow !

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: Image thumbnailer / re-sizer / cropper
« Reply #1 on: October 15, 2018, 07:01:26 PM »
Very nice, thanks for sharing.

- Jim

Forum Search and Google Can be Your Best Friends

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: Image thumbnailer / re-sizer / cropper
« Reply #2 on: October 16, 2018, 08:25:34 AM »
This is seriously the best tool since the bread slicer  =D&gt; :lol:

 

anything