| stands for | values | What it does | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
src --- |
source | 图像的URL ------------- |
Tells TimThumb which image to resize › TimThumb basic properties tutorial --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
w --- |
width | 显示的宽 ------------- |
Remove the width to scale proportionally (will then need the height) › TimThumb width tutorial --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
h --- |
height | 显示的高 ------------- |
Remove the height to scale proportionally (will then need the width) › TimThumb height tutorial --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
q --- |
quality | 0 – 100 ------------- |
压缩质量。更高更好的图像数量会看。我不建议继续高于其他约95图像将得到太大 › TimThumb image quality tutorial --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
a --- |
alignment | c, t, l, r, b, tl, tr, bl, br ------------- |
--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
zc --- |
zoom / crop | 0, 1, 2, 3 ------------- |
例子: http://localhost/timthumb.php?src=http://localhost/upload/201309/1378783132443700981.jpg&h=156&w=276&zc=2 --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
f --- |
filters | too many to mention ------------- |
图像过滤器和参数,你可以使用:
多一次过滤器为了使这个超级灵活,我想这将是很好,如果我能链的过滤器一起使用多个过滤器在一个单一的形象。要做到这只是独立的多个过滤器使用管道字符,然后通过一大堆TimThumb。例如,下面的值中,将适用于10亮度的灰度图像: F = 2 | 1,10 |
|||||||||
s --- |
sharpen | ------------- | 锐化过滤器,参数为1 --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
cc --- |
canvas colour | hexadecimal colour value (#ffffff) ------------- |
更改背景颜色。最常用的改变缩放和裁剪设置,这反过来又可以添加边框的图像时。 --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|||||||||
ct --- |
canvas transparency | true (1) ------------- |
使用的透明度和忽略的背景颜色,参数为1。 --------------------------------------------------------------------------------------------------------------------------------------------------------- |
使用例子: http://localhost/timthumb.php?src=http://localhost/upload/201309/1378783132443700981.jpg&w=276&h=156&zc=2