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

Note: this server is working on GD "bundled (2.1.0 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=3d826b13e36fac48c692b2f4bd7e9b96" alt="">
phpThumb version



#1
<img border="0" src="../phpThumb.php?src=images%2Fdisk.jpg&amp;w=300&amp;hash=160ce3923ddd975f354d68ca32dfe656" 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=e460304b15144f13629c18db4cc0de20" 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=a1ca76f6827f06fc55a85a3a5c7389a0" 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=77cc2da59e8fef806d0f0744158e7982" alt="">
section from (600x5 - 700x105) cropped and enlarged by 250%, AllowOutputEnlargement enabled



#5
<img border="0" src="../phpThumb.php?src=http%253A%252F%252Fwww.silisoftware.com%252Fimages%252FSiliSoft.gif&amp;w=100&amp;hash=bb07b21ff1242334145f931e6e18fe1a" alt="">
HTTP source image
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=75934456a838def442896ff1c7c09f36" alt="">
width=300px, watermark (bottom-left, 75% opacity)
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=985c708a1957f99497934085c99cb464" alt="">
width=300px, watermark (tiled, 25% opacity)
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=89c71859eb3e6c9a0c45801ec5d4562e" alt="">
width=300px, watermark (absolute position (75x50), rotation (45), scaling (75x75)))
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



#9
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=png&amp;hash=31ccd19ffb01d27bd44cde4bb8b3e447" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=gif&amp;hash=d3653d494c03d67ba449cac829d4be13" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fwatermark.png&amp;bg=00FFFF&amp;f=jpeg&amp;hash=a40ea80bf7aa11b9890e49b5b5d27296" 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=f49dffc4ceefbb73bbddfe7311cb12c9" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=gif&amp;hash=587fa37f56daf46c5f310cf9bde4e6ac" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=png&amp;hash=c1a8d380715c503a5660eae1a76d9c7b" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=ico&amp;hash=98179498af8035e38e3725aa2393c115" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=bmp&amp;hash=cd2fdb0d218ba30b6ed7f3047116d5d4" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;w=25&amp;f=jpeg&amp;hash=347a4a6d12135dd0edc1cc01faafa447" 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=f49dffc4ceefbb73bbddfe7311cb12c9" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;sfn=0&amp;f=png&amp;hash=f08caddbfebb979512ebb1f549ad9e8b" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fanimaple.gif&amp;sfn=2&amp;f=png&amp;hash=13b138b96fa24931f2f966423c11290e" 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=cc0d96a0ba250a1b5201fb022d2c4448" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=ico&amp;hash=11852f95c6ab038d0442f04b9b1e0056" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=gif&amp;hash=e4f43c370650aa1f306cc165ff12b972" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;f=jpeg&amp;hash=8a08dbd5f04073754783a62ed16e8389" 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 v7.2.34 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=cbafe742ef2275154e3299100ec6c371" alt="">
Create transparency from source image color
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" so it will work)



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



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



#16
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=d4f58db2595cafed2e87db87565280c7" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gblr&amp;hash=6db4cb1128b45a93f823b7a49ebba4a2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sblr&amp;hash=97529006ed6d7c3ec71953d645249112" alt="">
normal vs. gaussian blur vs. selective blur
(only works with PHP v5.0.0+, this server is running PHP v7.2.34 so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" 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=9ecd43512ed81418dbf61302bceae905" 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=eb0bf0c9c4cda2c8f861e4cdc5502564" 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=c549650f19fd233f764dbe1eec51e7fb" 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=9836a94c36e6f3cb24dcfd5242c016e4" 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=34564b474cbd5dd3d7e9531363f57005" alt="">
Forced Aspect Ratio, colored background, PNG output
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



#18
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;ar=L&amp;hash=cedd4db77a1a71a0b0ce33b597c438fe" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=150&amp;ar=L&amp;hash=7b204e70569c8d2c24be08fc6c9f461f" alt="">
auto-rotate counter-clockwise to landscape from portrait & lanscape
(only works with PHP v4.2.0+, this server is running PHP v7.2.34 so it will work)
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



#19
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;hp=100&amp;wl=200&amp;hash=c9e1fd87930a3554088c970cbe99be5c" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;hp=100&amp;wl=200&amp;hash=a6cde13d035d3365e23a0e730756c6e4" 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=cd52f9494b6560b7bcb8a9f9b07943e3" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fmonkey.jpg&amp;w=150&amp;h=150&amp;ar=x&amp;hash=bd2351a79822569de0834cd3762ea170" alt="">
original image vs. auto-rotated based on EXIF data
(only works with PHP v4.2.0+, this server is running PHP v7.2.34 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.1.0 compatible)" 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=ee347558bc2a121cf40d60d32a942106" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;ra=30&amp;f=png&amp;hash=306039b35444d65afb842639f6b8d3b6" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;ra=30&amp;f=png&amp;hash=9851c2318fa632c72731768b194ddfa1" alt="">
<img border="0" src="../phpThumb.php?src=images%2Falpha.png&amp;ra=30&amp;f=gif&amp;hash=d969579efdb8a39a8aed0dc455367c77" 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 v7.2.34 so it will work)
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=dcf6b2b2202e22245ea834fa70904c26" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;h=300&amp;iar=1&amp;hash=63d52ae41d5ae1d67294319149da1e19" alt="">
Normal resize behavior (left) vs. Forced non-proportional resize (right)
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=9ecb6a09301031e61c6c7935ba7bdd7d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=100&amp;zc=1&amp;hash=f324c2484506807918e42165dab8361f" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;h=50&amp;zc=1&amp;hash=ccf7113296c11bcaea0e3c32e1bc3521" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;h=50&amp;zc=1&amp;hash=4231f2727d93b7f30eb8571c3baca99d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=100&amp;zc=1&amp;hash=8c2b5c7f9b0493641f4a107833fe3ccd" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;h=50&amp;zc=1&amp;hash=e0196ad024a1f8b72f855ca001e3dc4e" alt="">
Zoom-Crop



#24
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=crop%7C50&amp;hash=3a342fc72e6cece7d3ae952c92741849" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=crop%7C0%7C0%7C0%7C0.25&amp;hash=8fb6c2b32f32795d66936f4518a72767" 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=efeefd095fc32239580a530ee75925be" 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.1.0 compatible)" 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=1a720390a67218351b18f0fbbd77e865" 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.1.0 compatible)" so it will work)
(only works with PHP v4.3.2+, this server is running PHP v7.2.34 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=bd3b551e1f20c1c263df0dda76d40148" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=d4f58db2595cafed2e87db87565280c7" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sat%7C-100&amp;hash=2ee2e3384a4ea711f36e329b94eb479e" alt="">
saturation -75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" so it will work)



#28
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=ds%7C75&amp;hash=48eee86d5f0543c1f7c712672d1f54dd" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=d4f58db2595cafed2e87db87565280c7" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=ds%7C-100&amp;hash=419c616a6a88bfe454abda1c2bd0ebc5" alt="">
desaturated 75% vs. normal vs. -100%
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" 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=1b2d84565b602888bb425f08947790b2" alt="">
colorized 25% to green (#00FF00)
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" so it will work)



#30
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gray&amp;hash=e13f218a882ea20ad4d3c28c5ba5b2e2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=sep&amp;hash=c74650d467ba43e0148426a05841c102" alt="">
grayscale vs. sepia
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" 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=87b6ee194e5245d812b42f3ee84fcd3d" 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=91f24dde1124c4bcbfa804af2dfdd2c0" 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=cac84007ee67c522a89cc840e3d8ecdb" 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 v7.2.34 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.1.0 compatible)" 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=9530915fcb0a9f1b834a87149c34b6f7" 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=6c8b9806ccbb26a3f64e02b21dd56b47" 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=4fb914447ccb23db700fb2cc79b69dfe" 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=6c4396204d3f793a4b93c4085c413dbb" 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 v7.2.34 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=8d4256ed0fc0d82ce2faa18bdf876099" 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=e16ca00ed3bd8e8af730844ded479058" 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 v7.2.34 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.1.0 compatible)" so it will work)



#34
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cx&amp;hash=787e44654fb525318f5da19d3df3580d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cy&amp;hash=61ff9c4ea5cb42b65ed0ff96a4badd53" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=flip%7Cxy&amp;hash=a849a24e68ac195b9272886a178b893c" alt="">
flipped on X, Y and X+Y axes
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=246050c7afcce77ff3f096db07489bfa" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=bvl%7C10%7C000000%7CFFFFFF&amp;hash=d172f284f6837d4e65acd4a05da5c558" alt="">
10px bevel edge filter
(only works with PHP v4.3.2+, this server is running PHP v7.2.34 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=30c8552f91feabdc6d53a6ac655ef7df" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=fram%7C3%7C2%7CCC9966%7C333333%7CCCCCCC&amp;hash=c9b27b9f891f0670d5fbff095ea60a95" alt="">
3+2px frame filter
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



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



#38
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=th%7C105&amp;hash=b3d836daf105230acdbf91e2fc1373bc" 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=a674466b4434ae9e0597b817460719a2" alt="">
Threshold filter; showing preserved alpha channel
(only works with PHP v4.3.2+, this server is running PHP v7.2.34 so it will work (correctly))
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



#39
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;hash=11257675699f7635a5a188007965ab20" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=rcd%7C16%7C1&amp;hash=9477a9b95f4cfa9b30d12407221dda95" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=rcd%7C16%7C0&amp;hash=32c6f665d324ee53626418de0f753ada" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=150&amp;fltr[]=gray&amp;fltr[]=rcd%7C8%7C1&amp;hash=02ba04b10d1089a8418748b03a66cd2d" 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.1.0 compatible)" 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=feb33e26c537e6576bd2fc9c47a2ab7c" 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=26951b7e2441c264a96ee1c3a7f1751e" 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=a013fc842358b8a493301041ec9127c7" 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=eb2082adc84afd36b06823977adef36e" 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=4d6e0f61730852d003d571602701984c" 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=cc8f243704d7e80c950c7862bc137e6e" 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=d7aa7240f1ef8747ffc1e1b4f621cb92" 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=ee0bcebddc6344666cc0a93dccf56d2d" 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=3e84dfce72d9ee13e31c39e9de28a617" 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=7b861839bd728f65d483bf4bdb3d8b33" 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.1.0 compatible)" so it will work)



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



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



#43
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=edge&amp;hash=ba1e303f3aca3c8412719729a9a385a4" alt="">
Edge Detect filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v7.2.34 and "n/a" so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" so it will work)



#44
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=emb&amp;hash=3445e1a272c975ea42fecf84eb6a3fef" alt="">
Emboss filter
(only works with PHP v5.0.0+ or ImageMagick, this server is running PHP v7.2.34 and "n/a" so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" so it will work)



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



#46
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=smth&amp;hash=b5cc884a1018b1bac5b099bd3293b8b1" alt="">
Smooth filter
(only works with PHP v5.0.0+, this server is running PHP v7.2.34 so it will work (correctly))
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" 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=fb760264ad6af7753dce34450e8bed1f" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gam%7C1.0&amp;hash=2b21e7d34e2116161849b5fbc8677d8d" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=gam%7C2.0&amp;hash=64913ecb085553519960b59090a70214" 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.1.0 compatible)" and ImageMagick "n/a" so it will work)



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



#49
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;hash=d4f58db2595cafed2e87db87565280c7" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=cont%7C50&amp;hash=97187c43b697219465ce48c5996853db" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=cont%7C-50&amp;hash=bfe1e4d408a8e4f3c34db6e4d691fee5" alt="">
Contrast filter (original vs. +50 vs. -50)
(only works with GD v2.0+, this server is running GD "bundled (2.1.0 compatible)" 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=e9d1f54391cea9a9815096e96e6ae948" alt="">
<img border="0" src="../phpThumb.php?src=images%2Fpineapple.jpg&amp;w=300&amp;fltr[]=over%7Cimages%2Fframe2.png%7C1&amp;hash=dc41cc3c80b93c1a05803f4da399faf6" alt="">
Overlay vs. Underlay

Original over/under images:

(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=fad3f8acade9ac60a0fcef0094f0dba2" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7C%2526%25239786%253B%2526%25239835%253B%2526%25230470%253B%2526%25231694%253B%7C40%7CL%7CFF0000%7Carial.ttf%7C100&amp;f=png&amp;hash=91def2db7f268877f85ecb5c21f665f0" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Ccopyright%2B2024%7C3%7CBR%7C00FF00%7C%7C50&amp;f=png&amp;hash=7bd5f172aaa03b91af6274faf910e3b3" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Ccopyright%2B2024%250AphpThumb%28%29%7C3%7CL%7C00FFFF&amp;f=png&amp;hash=6097f336952fa5a9c10e3f4c8bbb3607" 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.1.0 compatible)" so it will work)



#52
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cthumbnail%2B&amp;f=png&amp;hash=591ffbe89dd169402c51024c3ac5f2e0" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cclick%250Ahere%250A%5EFkkB%7C10%7CL%7CFF00FF%7Carial.ttf%7C100%7C0%7C%7C333399%7C50%7Cy&amp;f=png&amp;hash=e771d482a5dc0bf62ca65d7517cbd086" alt="">
<img border="0" src="../phpThumb.php?src=images%2Floco.jpg&amp;w=300&amp;fltr[]=wmt%7Cresized%3A%2B%5EXx%5EY%2Bto%2B%5Exx%5Ey%7C10%7CB%7CFFFFFF%7Carial.ttf%7C100%7C0%7C%7C000000%7C100%7Cx&amp;f=png&amp;hash=72349a3b3153f0d28f458dce2e8dc0cb" alt="">
metacharacters (height, width), background color, background extend
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" 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=427d58746010cf750a488dd3d83bb4bf" 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%2Bopaque%7C14%7CC%7C0066FF%7Carial.ttf&amp;f=png&amp;hash=dd519e5afdb97fd90ed871cf99095c53" alt="">
Image created with "new", red background, bevel, TTF text
(only works with GD (any version), this server is running GD "bundled (2.1.0 compatible)" so it will work)



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



#55
<img border="0" src="../phpThumb.php?src=images%2F1024-none.tiff&amp;hash=1d19851cdd97968004e6bc2523db26a7" alt="">
<img border="0" src="../phpThumb.php?src=images%2F1024-none.tiff&amp;w=300&amp;aoe=1&amp;hash=3369d1b96f28d1aa3be376f12c776183" 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=0b93212fb6a0a9e972144b473d3daf49" 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=c210a3b0c9e1c2172db55fbaf872e274" 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: