Skip to content

Demo

1.

timthumb.php?src=atlantis-dock.jpg

Default settings

2.

timthumb.php?src=atlantis-dock.jpg&zc=0

zc = 0: Resize to Fit specified dimensions (no cropping)

3.

timthumb.php?src=atlantis-dock.jpg&zc=1

zc = 1: Crop and resize to best fit the dimensions (default behaviour)

4.

timthumb.php?src=atlantis-dock.jpg&zc=2

zc = 2: Resize proportionally to fit entire image into specified dimensions, and add borders if required

5.

timthumb.php?src=atlantis-dock.jpg&zc=3

zc = 3: Resize proportionally adjusting size of scaled image so there are no borders gaps