This is a demo of phpThumb() (current version: v1.7.15-201709210936)
Other phpThumb() demos are also available.

Note: this server is working on GD "2.2.5", so images should be of optimal quality.

phpThumb.demo.showpic.php demo here
Difference between GD1 and GD2

The following images have the textured background behind them to illustrate transparency effects. Note that some browsers, notably Internet Explorer v6 and older, are incapable of displaying alpha-channel PNGs. See my page on the PNG transparency problem. All current browsers (2010 and newer) display alpha-transparent PNGs with no problems.

#0
<img border="0" src="../phpThumb.php?&amp;hash=cc495d7f98883112cbc4ab391732bd7b" alt="">
phpThumb version



#1
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;hash=51f16c91e9078c0e110d2588fb282d77" alt="">
width=300px



#2
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;q=10&amp;sia=custom-filename&amp;hash=7c66b901d0360a5ca19e0de49a9d6e69" alt="">
width=300px, JPEGquality=10%, SaveImageAs=custom-filename



#3
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;w=400&amp;aoe=1&amp;bg=ffffff&amp;hash=b30fb7323701d45cdbb72bf1ac63bf11" alt="">
width=400px, AllowOutputEnlargement enabled



#4
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=250&amp;sx=600&amp;sy=5&amp;sw=100&amp;sh=100&amp;aoe=1&amp;hash=9da6a75901fe8871410f04e1b0b4d706" alt="">
section from (600x5 - 700x105) cropped and enlarged by 250%, AllowOutputEnlargement enabled



#5
<img border="0" src="../phpThumb.php?src=http%3A%2F%2Fwww.silisoftware.com%2Fimages%2FSiliSoft.gif&amp;w=100&amp;hash=a0ea3d56cfc65e0576d5260ed815fa1a" alt="">
HTTP source image
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#6
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;fltr[]=wmi%7Cimages%2Fwatermark.png%7CBL&amp;hash=78055caa0b0d3a0c22db2a72f98c6b16" alt="">
width=300px, watermark (bottom-left, 75% opacity)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#7
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;fltr[]=wmi%7Cimages%2Fwatermark.png%7C%2A%7C25&amp;hash=97c50ba8d4c76cd8d57b69c0bf097023" alt="">
width=300px, watermark (tiled, 25% opacity)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#8
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;fltr[]=wmi%7Cimages%2Fwatermark.png%7C75x50%7C80%7C75%7C75%7C45&amp;hash=22ed97882023523a75d8301dd1ef5b53" alt="">
width=300px, watermark (absolute position (75x50), rotation (45), scaling (75x75)))
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#9
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=png&amp;hash=fb0d2b3a7326ef43edfbbcff2a28ead3" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=gif&amp;hash=75be1ef61c6a0bf07f6b88347f8cca6d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=jpeg&amp;hash=94a4983377f33cb11b6fee6a566f3dd6" alt="">
source image (GIF) transpancy with transparent output (PNG, GIF) vs. specified background color (JPEG)



#10
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;hash=7461d0182ba5e6a15abf92fa60261385" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=gif&amp;hash=2dd72c7cb076bd922c22e3225df764a1" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=png&amp;hash=3c02591b908ebec1b09e92d3c4f2e2fb" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=ico&amp;hash=7d999e5eaf46ebfb74aeb1feef002d0a" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=bmp&amp;hash=fb365865450b37d8ae999b3370d4fcbd" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=jpeg&amp;hash=c3e726a5795076abac68fb27f0cd20e6" alt="">
resize animated GIF. Notice how output format affects the result: GIF is animated and transparent; PNG and ICO are tranparent but not animated (first frame is rendered as a still image); JPEG and BMP are neither transparent nor animated. Any filters will disable animated resizing (may be fixed in a future version).

(requires ImageMagick, this server is running "n/a" so it will not work)



#11
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;hash=7461d0182ba5e6a15abf92fa60261385" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;sfn=0&amp;f=png&amp;hash=d8bd8dfdc454325b245abd308fb8bbbe" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;sfn=2&amp;f=png&amp;hash=d11e93cec0933d72ff23002776f78750" alt="">
Specifying still-image source frame in multi-frame source images

(requires ImageMagick, this server is running "n/a" so it will not work)



#12
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=png&amp;hash=1228c707995b620195e51594d453c7f2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=ico&amp;hash=f85683c1a1891b95984fe2c328044391" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=gif&amp;hash=86c97e69bbe4c3a41ef06878afedade0" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=jpeg&amp;hash=4c0f42eb3fc847db5ffff13b51210d9d" alt="">
PNG alpha transparency test, using test image from the PNG transparency test page
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))



#13
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;fltr[]=stc%7CFFFFFF%7C5%7C10&amp;f=png&amp;hash=03356f980dd36f9b4195cb0d4fff6ebe" alt="">
Create transparency from source image color
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#14
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=usm%7C80%7C0.5%7C3&amp;hash=3f7c11d962b57dfdaafeec999cb0f187" alt="">
normal vs. unsharp masking at default settings
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#15
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=blur%7C1&amp;hash=f9982787b8dbe742586cc98d23a1f824" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=blur%7C5&amp;hash=a5bc63029cd193cb21411ec8b4119f2a" alt="">
normal vs. blur at default (1) and heavy (5)
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#16
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gblr&amp;hash=dde0ddabb7d839a3ff7746e732f45a3b" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sblr&amp;hash=e19fd52b360ff29cd5fd0af59dd9fd0a" alt="">
normal vs. gaussian blur vs. selective blur
(only works with PHP v5.0.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#17
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;h=100&amp;far=L&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord%7C1&amp;hash=dc0da7ab07414be4f2a8184033c9737b" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=100&amp;h=100&amp;far=T&amp;bg=FF0000&amp;f=png&amp;fltr[]=bord%7C1&amp;hash=9d195526946d8945ba087da3a9414dcc" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;h=100&amp;far=C&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord%7C1&amp;hash=7488fce7f84f27b7b9847c65d98e0ca8" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=100&amp;h=100&amp;far=B&amp;bg=FF0000&amp;f=png&amp;fltr[]=bord%7C1&amp;hash=c98fac9e42b5c8ba8ca2f9ec97a3393b" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;h=100&amp;far=R&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord%7C1&amp;hash=3056dabb8ce0d497ec05b41ccc2d819f" alt="">
Forced Aspect Ratio, colored background, PNG output
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#18
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;ar=L&amp;hash=dd2b0a24d4359a0dbad4d8b89838010e" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=150&amp;ar=L&amp;hash=a24c386f8a089c9687ea948bf1ca7ebb" alt="">
auto-rotate counter-clockwise to landscape from portrait & lanscape
(only works with PHP v4.2.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#19
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;hp=100&amp;wl=200&amp;hash=c17628d3bc2cf05d426bea01de90cafa" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;hp=100&amp;wl=200&amp;hash=8f5791f6ce6056b9fead114bfba6b86f" alt="">
auto-selection of W and H based on source image orientation



#20
<img border="0" src="../phpThumb.php?src=images%2Fmonkey.jpg&amp;w=150&amp;h=150&amp;hash=7efe6d8516d0d74cebab31fda68479d6" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fmonkey.jpg&amp;w=150&amp;h=150&amp;ar=x&amp;hash=ebec16bf18683da2dab3e8c35937e12e" alt="">
original image vs. auto-rotated based on EXIF data
(only works with PHP v4.2.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work)
(only works when the EXIF extension is loaded, so on this server it will work)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#21
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;ra=30&amp;bg=0000FF&amp;hash=53a4326d34578fab1a1772636256f64c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;ra=30&amp;f=png&amp;hash=2a4966670d5f8f16d54281bac28b1d7c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;ra=30&amp;f=png&amp;hash=8332f3115505594e74b0b0402e178353" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;ra=30&amp;f=gif&amp;hash=6618d86f90dffc0697e01cf57aaa99ba" alt="">
Rotated 30° (counter-clockwise), width=300px, blue background vs. transparent background vs. rotated image with pre-existing alpha
(only works with PHP v4.2.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#22
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;h=300&amp;far=1&amp;bg=CCCCCC&amp;hash=feaa3f30bbfa44150e8a1654062b09b3" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;h=300&amp;iar=1&amp;hash=23c96e746eacc45bd51b8e52836f1c42" alt="">
Normal resize behavior (left) vs. Forced non-proportional resize (right)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#23
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=100&amp;h=50&amp;zc=1&amp;hash=8a51b1e4ad4e37e021e7eae0bba590b6" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=100&amp;zc=1&amp;hash=2aa4d63bc5bab3005f55377d7f1cfb3d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;h=50&amp;zc=1&amp;hash=cef1f41fe92d7dca94e39736122f2aef" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;h=50&amp;zc=1&amp;hash=498e323535a6de55b06fad477ebfaa68" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;zc=1&amp;hash=2ab3961cd313d2c1b62fc2a550db53f2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;h=50&amp;zc=1&amp;hash=c7ffbc7c7a5d6e021245da9241465c30" alt="">
Zoom-Crop



#24
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=crop%7C50&amp;hash=c82d3dca58a92fcccd08652d5c4ae094" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=crop%7C0%7C0%7C0%7C0.25&amp;hash=9a72392c504e62f875d79a13645053cd" alt="">
crop filter



#25
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=bord%7C2%7C20%7C10%7C009900&amp;f=png&amp;hash=0ff1474e68635b2a704ca1ad7ec03467" alt="">
2px border, curved border corners (20px horizontal radius, 10px vertical radius)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#26
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=ric%7C50%7C20&amp;f=png&amp;hash=c24eb9bc91252a2ffd7a541dac52bf12" alt="">
curved border corners (20px vertical radius, 50px horizontal radius)
Note: PNG/ICO output is 32-bit with alpha transparency, subject to PNG transparency problem in Internet Explorer
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))



#27
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sat%7C75&amp;hash=34a1ffe0f5fb922dfbd08f0eaed8cb19" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sat%7C-100&amp;hash=d83aa12186c3f227a8d77b98f1bb500e" alt="">
saturation -75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#28
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=ds%7C75&amp;hash=ab6e987c119d91dd9720f2d8648f00d5" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=ds%7C-100&amp;hash=90d4585bdc9ec98808452e7b89edc89c" alt="">
desaturated 75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#29
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=clr%7C25%7C00FF00&amp;hash=1c918302b2524a976f8ce7139aea3a35" alt="">
colorized 25% to green (#00FF00)
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#30
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gray&amp;hash=b2a5b78cc107134ef18b027b520df1f2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sep&amp;hash=b1d3b3ff0870bcea6e144d712ac75463" alt="">
grayscale vs. sepia
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#31
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mask%7Cimages%2Fmask06.png&amp;f=png&amp;hash=6c45db8c80faeb74f91c9bcf3f51aa4c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mask%7Cimages%2Fmask04.png&amp;f=png&amp;hash=1068c35c9e2e00debc72e3f51adc4e75" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mask%7Cimages%2Fmask05.png&amp;f=jpeg&amp;bg=9900CC&amp;q=100&amp;hash=d7efdbf9041860e4965db651d9ef003a" alt="">
Assorted alpha masks (seen below) applied
Note: PNG/ICO output is 32-bit with alpha transparency, subject to PNG transparency problem in Internet Explorer
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
JPEG/GIF output is flattened to "bg" background color
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)




#32
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=drop%7C5%7C10%7C000000%7C225&amp;f=png&amp;hash=1ed1947dd682540d9760ab72e8df0f78" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mask%7Cimages%2Fmask06.png&amp;fltr[]=drop%7C5%7C10%7C000000%7C225&amp;f=png&amp;hash=aa23aae9ce10f02ccb82e35c02315dcc" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=drop%7C5%7C10%7C000000%7C225&amp;fltr[]=elip&amp;f=png&amp;hash=6f977313b086d9b52f6fdaad5a978024" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=elip&amp;fltr[]=drop%7C5%7C10%7C000000%7C225&amp;f=png&amp;hash=0283537f1974a92a0ef9134083f32c5d" alt="">
Drop shadow. Note how the order in which filters are applied matters.
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#33
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=elip&amp;f=png&amp;hash=d89d1c22552f446aaeaf65aa439d2eba" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=elip&amp;f=jpeg&amp;bg=00FFFF&amp;hash=5adc62674108c665449a4c4c0ee64103" alt="">
Ellipse
Note: PNG/ICO output is 32-bit with alpha transparency, subject to PNG transparency problem in Internet Explorer
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
JPEG/GIF output is flattened to "bg" background color
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#34
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cx&amp;hash=eaab9bbb484cd3346698a0e4bb6784ee" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cy&amp;hash=ae45b5e12fd43d36b49b3239f79e7575" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cxy&amp;hash=d1651aeebe4bbd5579f3e7d80966e112" alt="">
flipped on X, Y and X+Y axes
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#35
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=bvl%7C10%7CFFFFFF%7C000000&amp;hash=321cc8fdc7abf50135b60fcbbc43c3c6" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=bvl%7C10%7C000000%7CFFFFFF&amp;hash=a29dfe9e46dc12169b16d9485811d739" alt="">
10px bevel edge filter
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#36
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=fram%7C3%7C2%7CCCCCCC%7CFFFFFF%7C000000&amp;hash=a2391df346882ee8c2fd654ac2c6d8c8" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=fram%7C3%7C2%7CCC9966%7C333333%7CCCCCCC&amp;hash=de13cf32e006a292520369a8065c92d3" alt="">
3+2px frame filter
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#37
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=neg&amp;hash=78cc73577565d850a02799854c347a70" alt="">
Negative filter (inverted color)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#38
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=th%7C105&amp;hash=ae1e5013532dd3adfae18ae218ed650d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mask%7Cimages%2Fmask04.png&amp;fltr[]=th%7C105&amp;f=png&amp;hash=532b0a7aac5d9e3f3bef6b6d85f56478" alt="">
Threshold filter; showing preserved alpha channel
(only works with PHP v4.3.2+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#39
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;hash=c787cd795556f585eebcc32f8425b427" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=rcd%7C16%7C1&amp;hash=0a3e40379c025f9af7fdd9e88fd88739" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=rcd%7C16%7C0&amp;hash=a1067180249f2429a2517868c7711ce5" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=gray&amp;fltr[]=rcd%7C8%7C1&amp;hash=3c7777695c48799bf8b1557e7a4f67d8" alt="">
ReduceColorDepth filter; original vs. 16-color dither vs. 16-color nodither vs. 4-gray dither
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#40

<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=150&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=3846566cde05c14d798cd3d197c7018c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C0&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=27cb192ff15f1066dc30d4c966ab8c43" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C1&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=c8be5fadf0031c5a520d87a3aa2c2837" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C2&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=fa6b4c8d3169e888520b67c339290ffd" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C3&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=9f5e5d810c1fbd272b1532c7aa3b47e4" alt="">

<img border="0" src="../phpThumb.php?src=images%2Flilies.jpg&amp;w=150&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=31bee167b1ac5e0ff8cd7052a1423f5a" alt="">
<img border="0" src="../phpThumb.php?src=images%2Flilies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C0&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=1a757a5d3b20842b06a4e6f17fe7872c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Flilies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C1&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=d9a5477ba8f4f6f4ea1f02c93779b0d4" alt="">
<img border="0" src="../phpThumb.php?src=images%2Flilies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C2&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=a8ae7ec8a695fbaa38d4df5cfb65aa01" alt="">
<img border="0" src="../phpThumb.php?src=images%2Flilies.jpg&amp;w=150&amp;fltr[]=lvl%7C%2A%7C3&amp;fltr[]=hist%7Crgb%7C%7C%7C%7CBR%7C100&amp;fltr[]=hist%7C%2A%7C%7C%7C%7CBL%7C100&amp;hash=87974bd15fff2a83c2854c6e8585aad5" alt="">
original vs. Levels filter methods (0=Internal RGB; 1=Internal Grayscale; 2=ImageMagick Contrast-Stretch; 3=ImageMagick Normalize)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#41
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;hash=de8e4e080ce5c57f2924d133498ac04a" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;fltr[]=lvl&amp;hash=2b365d238e1acf356e822483c4002a38" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;fltr[]=wb&amp;hash=1c429e0ba04d266f5570e895198c7dfc" alt="">
original vs. Levels vs. White Balance
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#42
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=hist%7Crgb&amp;hash=ed841ed821b068136605cf2caa3f931c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fbunnies.jpg&amp;w=300&amp;fltr[]=hist%7C%2A&amp;hash=4ece7fe509f996320e03c62e648002d4" alt="">
histograms of RGB vs. grayscale
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#43
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=edge&amp;hash=3214631bf8da6618ef6e5ee5a40361bc" alt="">
Edge Detect filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b and "n/a" so it will work (correctly))
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#44
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=emb&amp;hash=8866663849ab90751f14a2bb2810740e" alt="">
Emboss filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b and "n/a" so it will work (correctly))
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#45
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=mean&amp;hash=feeb6469a91e386a9c1283edd9401b56" alt="">
Mean Removal filter
(only works with PHP v5.0.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#46
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=smth&amp;hash=4d5c6ce1f43a2ce3ef82eafe971a2d4e" alt="">
Smooth filter
(only works with PHP v5.0.0+, this server is running PHP v5.6.40-25+0~20200224.31+debian9~1.gbp0b752b so it will work (correctly))
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#47
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gam%7C0.5&amp;hash=60e3d80429127e344bcfcea7468293ea" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gam%7C1.0&amp;hash=a62f8c3f32369cac62b03f189d8eb7ee" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gam%7C2.0&amp;hash=721b40b5399777e6c6a3831d4911e0a1" alt="">
Gamma corrected to 0.5 vs. 1.0 (normal) vs. 2.0
(only works with GD v2.0+ or ImageMagick, this server is running GD "2.2.5" and ImageMagick "n/a" so it will work)



#48
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=brit%7C50&amp;hash=4869edfe8f99212c5211b0b3deeed93e" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=brit%7C-50&amp;hash=efaf2177849e840e41b897fc43010643" alt="">
Brightness filter (original vs. +50 vs. -50)
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#49
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=322dac00ec09f02b6565d1be6a7aa65d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=cont%7C50&amp;hash=dee9d5e22bdb0c234f30a1c5fd371c19" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=cont%7C-50&amp;hash=734e356512fc944ed8919046a3a2e43e" alt="">
Contrast filter (original vs. +50 vs. -50)
(only works with GD v2.0+, this server is running GD "2.2.5" so it will work)



#50
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;fltr[]=over%7Cimages%2Fframe1.png%7C0&amp;hash=804ce559f6979912fda3eda3aa9eb4e4" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;fltr[]=over%7Cimages%2Fframe2.png%7C1&amp;hash=6eaeb1221844867b65ae3172913e99b2" alt="">
Overlay vs. Underlay

Original over/under images:

(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#51
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7CphpThumb%7C18%7CC%7CFF0000%7Cloki.ttf%7C100%7C5%7C20&amp;f=png&amp;hash=4117d6d1e71b3ef60c631a0f0221dd85" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7C%26%239786%3B%26%239835%3B%26%230470%3B%26%231694%3B%7C40%7CL%7CFF0000%7Carial.ttf%7C100&amp;f=png&amp;hash=c22a8edab580a6fe5b01a32663e9171e" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Ccopyright%202024%7C3%7CBR%7C00FF00%7C%7C50&amp;f=png&amp;hash=6e37c22a980288b03141995d18a3df95" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Ccopyright%202024%0AphpThumb%28%29%7C3%7CL%7C00FFFF&amp;f=png&amp;hash=5bccf9388e5475bf6352e99144aa02fc" alt="">
Text overlay, TTF and built-in fonts, unicode characters (rawurlencoded HTMLentities), multiple lines, metacharacters (height, width)
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#52
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cthumbnail%20%3D%20%5EXx%5EY%7C3%7CBR%7C00FFFF%7C%7C50&amp;f=png&amp;hash=d32cfe83f50086ba6fcae13ed0a8d3f2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cclick%0Ahere%0A%5EFkkB%7C10%7CL%7CFF00FF%7Carial.ttf%7C100%7C0%7C%7C333399%7C50%7Cy&amp;f=png&amp;hash=f121dfb8021a55b0a3adfdd998ec7cb1" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cresized%3A%20%5EXx%5EY%20to%20%5Exx%5Ey%7C10%7CB%7CFFFFFF%7Carial.ttf%7C100%7C0%7C%7C000000%7C100%7Cx&amp;f=png&amp;hash=1429cb7d91a5d86db907cde56e4afe02" alt="">
metacharacters (height, width), background color, background extend
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#53
<img border="0" src="../phpThumb.php?new=FF0000&amp;w=100&amp;h=50&amp;fltr[]=bvl%7C10&amp;fltr[]=wmt%7Chello%7C14%7CC%7C00FFFF%7Carial.ttf&amp;f=png&amp;hash=7ce7e8e3a062239f750460af2997e5b8" alt="">
<img border="0" src="../phpThumb.php?new=FF0000%7C25&amp;w=150&amp;h=50&amp;fltr[]=bvl%7C10&amp;fltr[]=wmt%7C25%25%20opaque%7C14%7CC%7C0066FF%7Carial.ttf&amp;f=png&amp;hash=abc21a4d164956941493206305dae69f" alt="">
Image created with "new", red background, bevel, TTF text
(only works with GD (any version), this server is running GD "2.2.5" so it will work)



#54
<img border="0" src="../phpThumb.php?src=images%2Fwinnt.bmp&amp;w=300&amp;hash=3ff392b869f8d6b376e62ccce9a09327" alt="">
BMP source, width=300px



#55
<img border="0" src="../phpThumb.php?src=images%2F1024-none.tiff&amp;hash=2827a21e1127938c1edc684e0d1d6485" alt="">
<img border="0" src="../phpThumb.php?src=images%2F1024-none.tiff&amp;w=300&amp;aoe=1&amp;hash=0c768d50a7511af3b9ac40f229bc94b7" alt="">
TIFF source, width=300px
(requires ImageMagick, this server is running "n/a" so it will not work)
(requires ImageMagick compiled with TIFF delegate)



#56
<img border="0" src="../phpThumb.php?src=images%2Fcomputer.wmf&amp;w=300&amp;hash=9d322d3c867e19fc06bdeac2e7b1a906" alt="">
WMF source, width=300px
(requires ImageMagick, this server is running "n/a" so it will not work)



#57
<img border="0" src="../phpThumb.php?src=images%2FphpThumb.com.pdf&amp;w=300&amp;hash=4e17eb343414d698ccc012d7ecb8ba40" alt="">
PDF source, width=300px
(requires ImageMagick, this server is running "n/a" so it will not work)
(requires GhostScript)



#pathinfo
 <img src="../phpThumb.php/fltr[]=sep;200x200;images/pineapple.jpg" alt=""> 
 <img src="../phpThumb.php/f=png;fltr[]=wmt|hello;fltr[]=flip|y;fltr[]=wmt|hello;200x100;new=FF00FF" alt=""> 
PATH_INFO example




Illustration of potential difference between GD1.x and GD2.x
In most cases the thumbnails produced by phpThumb() on GD v1.x are perfectly acceptable, but in some cases it may look ugly. Diagonal lines and reducing a very large source image increase chance for bad results (the house/sky picture has both problems). Here are three static examples:
GD v2.0.15 kayak.jpg generated with phpThumb() on GD v2.0.15 bottle.jpg generated with phpThumb() on GD v2.0.15 sky.jpg generated with phpThumb() on GD v2.0.15
GD v1.6.2 kayak.jpg generated with phpThumb() on GD v1.6.2 bottle.jpg generated with phpThumb() on GD v1.6.2 sky.jpg generated with phpThumb() on GD v1.6.2



Demo of phpThumb.demo.showpic.php

Small picture (400x300), window opened at wrong size (640x480):
(mouse-over to see calling parameters)

unmodified text watermark

Big picture (2272x1704), window opened at wrong size (640x480):
(mouse-over to see calling parameters)

unmodified width=800 width=200, grayscale

The source images, without manipulation: