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

Note: this server is working on GD "bundled (2.0.34 compatible)", 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=cbb2fef80c740cd1e3cdacaf25f1fe4f" alt="">
phpThumb version



#1
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=300&amp;hash=47db60e11d23dda928e0a154d488512a" alt="">
width=300px



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



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



#4
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=250&amp;sx=600&amp;sy=5&amp;sw=100&amp;sh=100&amp;aoe=1&amp;hash=2051ab5f98245f6a763603c48ac72ada" 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=0853ea0e5e5dc038f4e0b896447511f0" alt="">
HTTP source image
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#6
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=300&amp;fltr[]=wmi|images/watermark.png|BL&amp;hash=8ec5017afcaf98ad697b7257d98dce0e" alt="">
width=300px, watermark (bottom-left, 75% opacity)
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#7
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=300&amp;fltr[]=wmi|images/watermark.png|*|25&amp;hash=8096ded30e1789b9560285767b543dca" alt="">
width=300px, watermark (tiled, 25% opacity)
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#8
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=300&amp;fltr[]=wmi|images/watermark.png|75x50|80|75|75|45&amp;hash=0f24a45639cc6544c0ac7f146afd70b5" alt="">
width=300px, watermark (absolute position (75x50), rotation (45), scaling (75x75)))
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#9
<img border="0" src="../phpThumb.php?src=images/watermark.png&amp;bg=00FFFF&amp;f=png&amp;hash=91ffcb538f8d50ed9f851623cdada88b" alt="">
<img border="0" src="../phpThumb.php?src=images/watermark.png&amp;bg=00FFFF&amp;f=gif&amp;hash=83cebbf7117ec1b77c735904b4ce1ba8" alt="">
<img border="0" src="../phpThumb.php?src=images/watermark.png&amp;bg=00FFFF&amp;f=jpeg&amp;hash=3f33d6880a139f671cdbfca9b0c64539" alt="">
source image (GIF) transpancy with transparent output (PNG, GIF) vs. specified background color (JPEG)



#10
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;hash=f1ec3fd77ff7e4d4e713a24068596191" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;w=25&amp;f=gif&amp;hash=dc8ebe9300591fa18dd24e77024d76c7" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;w=25&amp;f=png&amp;hash=ca269bd2aa38b5db506363b31eb61a8f" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;w=25&amp;f=ico&amp;hash=f1ffddae91cf918f07137a06fdb25353" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;w=25&amp;f=bmp&amp;hash=e100ad83cc47c907e39e2802be0c0d7e" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;w=25&amp;f=jpeg&amp;hash=256933d8c8afd27594fad1d6fbc2a00e" 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 "6.5.4-7 2012-05-07 Q16 " so it will work)



#11
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;hash=f1ec3fd77ff7e4d4e713a24068596191" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;sfn=0&amp;f=png&amp;hash=6d85a3b417bb0aa08249c381248e07bb" alt="">
<img border="0" src="../phpThumb.php?src=images/animaple.gif&amp;sfn=2&amp;f=png&amp;hash=396a034477b8d6d8b705381633b617ef" alt="">
Specifying still-image source frame in multi-frame source images

(requires ImageMagick, this server is running "6.5.4-7 2012-05-07 Q16 " so it will work)



#12
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;f=png&amp;hash=c02fdad0dc50a7e34684292d9f82682b" alt="">
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;f=ico&amp;hash=93e117d8e6a27556af37e2404ffe7578" alt="">
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;f=gif&amp;hash=42b5a3238529b62f482b1f1fb51221be" alt="">
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;f=jpeg&amp;hash=0bd1c97269649d8d5f4273d744c674b1" 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.3.3 so it will work (correctly))



#13
<img border="0" src="../phpThumb.php?src=images/disk.jpg&amp;w=300&amp;fltr[]=stc|FFFFFF|5|10&amp;f=png&amp;hash=ff2fa8d4719332b248e19df63fb3fe86" alt="">
Create transparency from source image color
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#14
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=usm|80|0.5|3&amp;hash=d384d34484b59c89e9be2ffc3954afc4" alt="">
normal vs. unsharp masking at default settings
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#15
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=blur|1&amp;hash=b111003689510e16a10141ad16d5138c" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=blur|5&amp;hash=670525e0030bfff28169439a7f9a0307" alt="">
normal vs. blur at default (1) and heavy (5)
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#16
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=gblr&amp;hash=14e573770ebf8bca965acf6d98bfa886" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=sblr&amp;hash=8d449922f0cb8f9e75a8e8159a13e6b3" alt="">
normal vs. gaussian blur vs. selective blur
(only works with PHP v5.0.0+, this server is running PHP v5.3.3 so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#17
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=100&amp;h=100&amp;far=L&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord|1&amp;hash=7c75daa0c8a091a3821f42b04eb4b79f" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=100&amp;h=100&amp;far=T&amp;bg=FF0000&amp;f=png&amp;fltr[]=bord|1&amp;hash=017a17666ede766a70477d1c6412622a" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=100&amp;h=100&amp;far=C&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord|1&amp;hash=0451b41d4276cb5ff4083527fbf32616" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=100&amp;h=100&amp;far=B&amp;bg=FF0000&amp;f=png&amp;fltr[]=bord|1&amp;hash=6e1e54bec02722706b0127ed6704ea5b" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=100&amp;h=100&amp;far=R&amp;bg=0000FF&amp;f=png&amp;fltr[]=bord|1&amp;hash=43ddf8ff66c0f5b7a7ed15afbc69c96c" alt="">
Forced Aspect Ratio, colored background, PNG output
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#18
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=150&amp;ar=L&amp;hash=706220c5366bc1e44ec933a9cbdc4ae9" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=150&amp;ar=L&amp;hash=b4a1e81e5337599e32dfc96739e8a4d1" alt="">
auto-rotate counter-clockwise to landscape from portrait & lanscape
(only works with PHP v4.2.0+, this server is running PHP v5.3.3 so it will work)
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#19
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;hp=100&amp;wl=200&amp;hash=2d66ea41679ddac8df9a7ff7ebb19370" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;hp=100&amp;wl=200&amp;hash=60cea493f4178d4c66e26fa7a59fd55f" alt="">
auto-selection of W and H based on source image orientation



#20
<img border="0" src="../phpThumb.php?src=images/monkey.jpg&amp;w=150&amp;h=150&amp;hash=7306352784b3d513dcec25d26e58b8e2" alt="">
<img border="0" src="../phpThumb.php?src=images/monkey.jpg&amp;w=150&amp;h=150&amp;ar=x&amp;hash=ab812dd03a46115b7daaaf2ce8381193" alt="">
original image vs. auto-rotated based on EXIF data
(only works with PHP v4.2.0+, this server is running PHP v5.3.3 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 "bundled (2.0.34 compatible)" so it will work)



#21
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;ra=30&amp;bg=0000FF&amp;hash=ca8c9d1afcc870a8b23a7c2cff5443bf" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;ra=30&amp;f=png&amp;hash=7d9f338d16f039bb84e33612d06e4eb2" alt="">
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;ra=30&amp;f=png&amp;hash=5d429c622fb8e796b1a8dba542ea6248" alt="">
<img border="0" src="../phpThumb.php?src=images/alpha.png&amp;ra=30&amp;f=gif&amp;hash=78cdfbd6c52d748f376350ee85531671" 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.3.3 so it will work)
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



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



#23
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=100&amp;h=50&amp;zc=1&amp;hash=93908f8640ece44b21d120f692216e56" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=100&amp;zc=1&amp;hash=a83e0601c889c8e10d2f478a81e6df2d" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;h=50&amp;zc=1&amp;hash=96b4519694232ac9b5bdb834d74129a5" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=100&amp;h=50&amp;zc=1&amp;hash=577547e4e463565d3f93963e0ad7b874" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=100&amp;zc=1&amp;hash=6f0b111fe9f808b03b43147350dff103" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;h=50&amp;zc=1&amp;hash=286b3fb83a8144f2bc21206513a99edc" alt="">
Zoom-Crop



#24
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=crop|50&amp;hash=436483b5f4c010c03739a1a721b3f343" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=crop|0|0|0|0.25&amp;hash=789962d653c642f2dd344bba6e9c17a5" alt="">
crop filter



#25
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=bord|2|20|10|009900&amp;f=png&amp;hash=51540d035b206a0192c36749235a7b89" alt="">
2px border, curved border corners (20px horizontal radius, 10px vertical radius)
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#26
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=ric|50|20&amp;f=png&amp;hash=d3c01500e175255db5e763c60dc3415e" 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 "bundled (2.0.34 compatible)" so it will work)
(only works with PHP v4.3.2+, this server is running PHP v5.3.3 so it will work (correctly))



#27
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=sat|75&amp;hash=8a2dfcdbccd3b9cb23efee9c123623f0" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=sat|-100&amp;hash=ae437668f72198e94904d57a18051772" alt="">
saturation -75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#28
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=ds|75&amp;hash=43580f1b9c84a32bc3a4329a62f7b233" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=ds|-100&amp;hash=5c525aa201648789c19caf1dfcfba412" alt="">
desaturated 75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#29
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=clr|25|00FF00&amp;hash=c4edb9ad784e4c9fafbd5593280f08ff" alt="">
colorized 25% to green (#00FF00)
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#30
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=gray&amp;hash=227b2dd506ebcf73bfd74417ba50975b" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=sep&amp;hash=45f69c4a64df7b7d5e9a811a6446568a" alt="">
grayscale vs. sepia
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#31
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mask|images/mask06.png&amp;f=png&amp;hash=9f5837d6690091f53cf74ec6311bb56d" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mask|images/mask04.png&amp;f=png&amp;hash=e3219e87c786d106079a6e05ba6b779c" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mask|images/mask05.png&amp;f=jpeg&amp;bg=9900CC&amp;q=100&amp;hash=377d2731343a62f91ca42624eda95b8e" 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.3.3 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 "bundled (2.0.34 compatible)" so it will work)




#32
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=drop|5|10|000000|225&amp;f=png&amp;hash=0588e032d6e46f7b6367030ea3a67713" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mask|images/mask06.png&amp;fltr[]=drop|5|10|000000|225&amp;f=png&amp;hash=d70864f7af03d9e346d7c348d21f692d" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=drop|5|10|000000|225&amp;fltr[]=elip&amp;f=png&amp;hash=ac50a4da31a27aba9fcbbaf0b86b8b72" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=elip&amp;fltr[]=drop|5|10|000000|225&amp;f=png&amp;hash=6d59bcc21ab1fb92d237a79678eb611e" 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.3.3 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#33
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=elip&amp;f=png&amp;hash=e7468589061863a13d8f291fadb1b28a" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=elip&amp;f=jpeg&amp;bg=00FFFF&amp;hash=08c48eaa01e38c3f87395211688219ab" alt="">
Elipse
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.3.3 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 "bundled (2.0.34 compatible)" so it will work)



#34
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=flip|x&amp;hash=167c344d2370e09da8225cb27f00c247" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=flip|y&amp;hash=7a13df625a057736f26b7d726dc111b6" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=flip|xy&amp;hash=296b4694c3717ebd27baf800668172ac" alt="">
flipped on X, Y and X+Y axes
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#35
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=bvl|10|FFFFFF|000000&amp;hash=f2030192ebb32d4a567082b2dd0b8495" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=bvl|10|000000|FFFFFF&amp;hash=241e8834a9596a22476744658b2511b0" alt="">
10px bevel edge filter
(only works with PHP v4.3.2+, this server is running PHP v5.3.3 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#36
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=fram|3|2|CCCCCC|FFFFFF|000000&amp;hash=03e5cb2af5f665d359b78264e237e64d" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=fram|3|2|CC9966|333333|CCCCCC&amp;hash=aae5fa5b3c7255cba3b7e2b8fa6670ab" alt="">
3+2px frame filter
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



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



#38
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=th|105&amp;hash=75589b6ad3344468c572b3c2d5773466" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mask|images/mask04.png&amp;fltr[]=th|105&amp;f=png&amp;hash=cb6e00663e31e78c3b73cdf82462e218" alt="">
Threshold filter; showing preserved alpha channel
(only works with PHP v4.3.2+, this server is running PHP v5.3.3 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#39
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=150&amp;hash=4c4ff99eba6069e13f7b136d063b3d05" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=150&amp;fltr[]=rcd|16|1&amp;hash=76137a54003afcee58096d28f79e169c" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=150&amp;fltr[]=rcd|16|0&amp;hash=32af1ba0a5a4bf83e7fef5d27812f662" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=150&amp;fltr[]=gray&amp;fltr[]=rcd|8|1&amp;hash=8110246be341b89a54084d65db676160" 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 "bundled (2.0.34 compatible)" so it will work)



#40

<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=150&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=1fb8dca668dacf1af9a804194f492c24" alt="">
<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=150&amp;fltr[]=lvl|*|0&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=a1a7df527b45a3920bf99fd11fb8f7b4" alt="">
<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=150&amp;fltr[]=lvl|*|1&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=18f316089a7b23792534847701c23ede" alt="">
<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=150&amp;fltr[]=lvl|*|2&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=c34ad223fa16445fd6858fde0d7e76ef" alt="">
<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=150&amp;fltr[]=lvl|*|3&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=4ecb7c3120a45f92c707fe3fb14e1e9c" alt="">

<img border="0" src="../phpThumb.php?src=images/lilies.jpg&amp;w=150&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=d74a0c7b5ed582f7df8350119c3f23e5" alt="">
<img border="0" src="../phpThumb.php?src=images/lilies.jpg&amp;w=150&amp;fltr[]=lvl|*|0&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=f9aefb32f9737da7d62f05cb404afeb7" alt="">
<img border="0" src="../phpThumb.php?src=images/lilies.jpg&amp;w=150&amp;fltr[]=lvl|*|1&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=3c2da27dd64afd47aa943ded2a527be5" alt="">
<img border="0" src="../phpThumb.php?src=images/lilies.jpg&amp;w=150&amp;fltr[]=lvl|*|2&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=bf1b4612181ac77face2dca0391456b4" alt="">
<img border="0" src="../phpThumb.php?src=images/lilies.jpg&amp;w=150&amp;fltr[]=lvl|*|3&amp;fltr[]=hist|rgb||||BR|100&amp;fltr[]=hist|*||||BL|100&amp;hash=4b1643930086ca46860e45763603bac1" 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 "bundled (2.0.34 compatible)" so it will work)



#41
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=300&amp;hash=84c508dcba707d885bf01b32599b89c7" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=300&amp;fltr[]=lvl&amp;hash=11402e1b538ca920636763ead9588078" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=300&amp;fltr[]=wb&amp;hash=5da73cbba6ca7ab532ff5eddff61c323" alt="">
original vs. Levels vs. White Balance
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#42
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=hist|rgb&amp;hash=34efd3c508f0ee645a6804a54403b79b" alt="">
<img border="0" src="../phpThumb.php?src=images/bunnies.jpg&amp;w=300&amp;fltr[]=hist|*&amp;hash=8763ab0d40df791da65a16e2049df256" alt="">
histograms of RGB vs. grayscale
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#43
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=edge&amp;hash=b3e6a74191ba15b4e23161df9b58feab" alt="">
Edge Detect filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v5.3.3 and "6.5.4-7 2012-05-07 Q16 " so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#44
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=emb&amp;hash=c36e2391b4ca6be6fdeb64b5f5a3ae1a" alt="">
Emboss filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v5.3.3 and "6.5.4-7 2012-05-07 Q16 " so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#45
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=mean&amp;hash=d642cbd2960ff8d8be3ac6a014e9198e" alt="">
Mean Removal filter
(only works with PHP v5.0.0+, this server is running PHP v5.3.3 so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#46
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=smth&amp;hash=b23f7cd75688ded6f70e9d1f422b460c" alt="">
Smooth filter
(only works with PHP v5.0.0+, this server is running PHP v5.3.3 so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#47
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=gam|0.5&amp;hash=60c7cb5d527eebf769f772bf47be062e" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=gam|1.0&amp;hash=aca6e29eabe4fb2a25995a5afa4dcefa" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=gam|2.0&amp;hash=0d4d277311a61de8e6dd08e92c1af276" 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 "bundled (2.0.34 compatible)" and ImageMagick "6.5.4-7 2012-05-07 Q16 " so it will work)



#48
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=brit|50&amp;hash=e886bfc872205d74cd71b0fd4dc0218e" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=brit|-50&amp;hash=734b0ff0dd34d7d542cdf7dae2cce5ef" alt="">
Brightness filter (original vs. +50 vs. -50)
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#49
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;hash=7ffe93b29e13e8a0518838630ce67bf2" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=cont|50&amp;hash=5252602adb837a9908403cef94966d4b" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=cont|-50&amp;hash=4949a256444ac011dea725bfc1c495b9" alt="">
Contrast filter (original vs. +50 vs. -50)
(only works with GD v2.0+, this server is running GD "bundled (2.0.34 compatible)" so it will work)



#50
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=300&amp;fltr[]=over|images/frame1.png|0&amp;hash=96787074159aed2f580d2018b8792094" alt="">
<img border="0" src="../phpThumb.php?src=images/pineapple.jpg&amp;w=300&amp;fltr[]=over|images/frame2.png|1&amp;hash=b2e347bbe36887fd34aa48d37f2ecc5b" alt="">
Overlay vs. Underlay

Original over/under images:

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



#51
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|phpThumb|18|C|FF0000|loki.ttf|100|5|20&amp;f=png&amp;hash=88892fc1a341ef6ca7b744f67f865c9a" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|%26%239786%3B%26%239835%3B%26%230470%3B%26%231694%3B|40|L|FF0000|arial.ttf|100&amp;f=png&amp;hash=8cdb8ba7072e44eb1136be697017634c" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|copyright+2014|3|BR|00FF00||50&amp;f=png&amp;hash=80d181862213f46cbbd8d4c111426057" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|copyright+2014%0AphpThumb()|3|L|00FFFF&amp;f=png&amp;hash=ac8c06b19dddadca523d9abf70b6ae08" 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 "bundled (2.0.34 compatible)" so it will work)



#52
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|thumbnail+=+^Xx^Y|3|BR|00FFFF||50&amp;f=png&amp;hash=b7bd1345e39570516adadb92e8a52573" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|click%0Ahere%0A^FkkB|10|L|FF00FF|arial.ttf|100|0||333399|50|y&amp;f=png&amp;hash=3b80600a1018e345911238e250387e50" alt="">
<img border="0" src="../phpThumb.php?src=images/loco.jpg&amp;w=300&amp;fltr[]=wmt|resized:+^Xx^Y+to+^xx^y|10|B|FFFFFF|arial.ttf|100|0||000000|100|x&amp;f=png&amp;hash=0ed9ddcc4bb28b360282d444010a62b0" alt="">
metacharacters (height, width), background color, background extend
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#53
<img border="0" src="../phpThumb.php?new=FF0000&amp;w=100&amp;h=50&amp;fltr[]=bvl|10&amp;fltr[]=wmt|hello|14|C|00FFFF|arial.ttf&amp;f=png&amp;hash=85d461670919d1b5967240688ab13b9f" alt="">
<img border="0" src="../phpThumb.php?new=FF0000|25&amp;w=150&amp;h=50&amp;fltr[]=bvl|10&amp;fltr[]=wmt|25%+opaque|14|C|0066FF|arial.ttf&amp;f=png&amp;hash=d0603840b9ce62b65388390b56154b84" alt="">
Image created with "new", red background, bevel, TTF text
(only works with GD (any version), this server is running GD "bundled (2.0.34 compatible)" so it will work)



#54
<img border="0" src="../phpThumb.php?src=images/winnt.bmp&amp;w=300&amp;hash=9445068bbc667136f06e21c710773e30" alt="">
BMP source, width=300px



#55
<img border="0" src="../phpThumb.php?src=images/1024-none.tiff&amp;hash=a882333cd29b4c0f1934853f3359d031" alt="">
<img border="0" src="../phpThumb.php?src=images/1024-none.tiff&amp;w=300&amp;aoe=1&amp;hash=69d10a5d49f4361c9bb13ee3f3182a02" alt="">
TIFF source, width=300px
(requires ImageMagick, this server is running "6.5.4-7 2012-05-07 Q16 " so it will work)
(requires ImageMagick compiled with TIFF delegate)



#56
<img border="0" src="../phpThumb.php?src=images/computer.wmf&amp;w=300&amp;hash=c4ace56837258fa18b120082363364e6" alt="">
WMF source, width=300px
(requires ImageMagick, this server is running "6.5.4-7 2012-05-07 Q16 " so it will work)



#57
<img border="0" src="../phpThumb.php?src=images/phpThumb.com.pdf&amp;w=300&amp;hash=abcb076b55e16afd71521fd7f6eb4cce" alt="">
PDF source, width=300px
(requires ImageMagick, this server is running "6.5.4-7 2012-05-07 Q16 " so it will 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: