TimThumb Demo: Part 5 – Zoom, Crop & Scale
A page demoing the different ways you can crop and zoom images when resizing with TimThumb. More info is available on the post TimThumb: Proportional Scaling.
WordPress and Web Development › home of Ben Gillbanks
A page demoing the different ways you can crop and zoom images when resizing with TimThumb. More info is available on the post TimThumb: Proportional Scaling.
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 |