Lines Matching refs:to

10 // phpThumb() is free to use according to the terms of the GPL. //
22 phpThumb() uses the GD library to create thumbnails from images (GIF, PNG
29 have native GIF support thanks to the GIFutil class by Fabien Ezber.
31 AntiHotlinking feature prevents other people from using your server to
32 resize their thumbnails, or link to your images from another server. The
42 If you still think it's a bug, or can't figure it out, please go to
53 2) unzip to a location of your choice on your server, putting it in its
56 4) edit phpThumb.config.php as needed to suit your server configuration.
64 highlighted green are good; yellow/orange/red may need to be adjusted.
75 phpThumbURL function to generate the URL including the hash value:
76 …echo '<img src="'.htmlspecialchars(phpThumbURL('src=/images/pic.jpg&w=50', '/path/to/phpThumb.php'…
97 Note: you may want to use "/" slashes instead of "\" if
98 you have magic_quotes_gpc enabled to avoid stripslashes
129 NOTE: most people don't need to and should not do this. If you just want to
131 To render output to one (or more) files instead of the browser, you should
136 your own phpThumb() object that code is bypassed and it's up to you to
144 There are some configuration options you may (but are not required to) change.
151 The configuration file is distributed as phpThumb.config.php.default to prevent
153 settings to the new file (if upgrading), or delete your old config and rename
154 the default to phpThumb.config.php since newer releases may include settings not
159 * high_security_password - required to generate the secure hashed URLs for
169 fails and you get an invalid image from large source images, set this to
177 may be able to exceed the auto value by a small or large amount, depending
185 Each call to phpThumb.php needs to be made through the function supplied
188 echo '<img src="'.phpThumbURL('src=pic.jpg&w=50', '/path/to/phpThumb.php').'">';
200 Set to hex color string of background. Opacity is
201 optional (defaults to 100% opaque).
224 Set to "1" or "C" to zoom-crop towards the center,
225 or set to "T", "B", "L", "R", "TL", "TR", "BL", "BR"
226 to gravitate towards top/left/bottom/right directions
238 where <value> is the amount +/- to adjust brightness
239 (range -255 to 255)
242 where <value> is the amount +/- to adjust contrast
243 (range -255 to 255)
246 where <value> can be a number 0.01 to 10 (default 1.0)
263 than <value> (range 0-255) to white, and all pixels
264 darker than <value> to black
272 to colorize to.
276 the hex color to colorize to (default=A28065).
293 (range -10 to 10, default 6)
310 Using default parameters (&fltr[]=lvl) is similar to
313 where <c> is the target hex color to white balance
315 gray. The filter attempts to maintain brightness so
320 to calculate auto-white-balance (default = 0.1%)
322 similar to "lvl", there is usually no need to use "lvl"
326 Where <b> is the color band(s) to display, from back
327 to front (one or more of "rgba*" for Red Green Blue
329 <c> is a semicolon-separated list of hex colors to
330 use for each graph band (defaults to FF0000, 00FF00,
336 <o> is opacity from 0 (transparent) to 100 (opaque)
342 image (to create a picture frame for example)
355 <f> is the filename of the image to overlay;
361 corner of canvas to top-left corner of overlay)
365 <o> is opacity from 0 (transparent) to 100 (opaque)
372 watermark image will be scaled to fit inside
377 <t> is the text to use as a watermark;
381 as "&#9834;" and then urlencoded to "%26%239834%3B"
400 corner of canvas to top-left corner of overlay)
405 <o> is opacity from 0 (transparent) to 100 (opaque)
410 <O> is background opacity from 0 (transparent) to
422 rounds off the corners of the image (to transparent
426 similar to rounded corners but more extreme
429 channel to the main image. White is opaque, black
431 set to 1 in which case black is opaque and white is
441 - "fram" (FRAMe) draws a frame, similar to "bord" but
450 where <d> is distance from image to shadow, <w> is
457 where <l> is the number of pixels to crop from the left
467 background hex color. Similar to regular "ra" parameter
474 to stretch (if 1) or resize proportionately (0, default)
478 It is only provided for cases where other filters need to
485 where <c> is the hex color of the target color to be made
501 xto = EXIF Thumbnail Only - set to only extract EXIF
505 ar = Auto Rotate: set to "x" to use EXIF orientation
506 stored by camera. Can also be set to "l" or "L"
517 and stretch image to fit "h" & "w" (which must both
526 sia = Save Image As - default filename to save generated
529 maxb = MAXimum Byte size - output quality is auto-set to
533 down = filename to save image to. If this is set the
534 browser will prompt to save to this filename rather
538 file = if set then thumbnail will be rendered to this
543 goto = URL to redirect to after rendering image to file
569 * Thumbnails will be scaled proportionately to fit in a
579 * If you need a GUI interface to phpThumb(), or for a user
580 to specify crop settings, or something like that please
585 to a value >0 and <1 then these are interpreted as a
587 to crop 25% off all sides, you would specify parameters:
599 unavailable, but you may have to specify a full filename
602 * phpThumb() should work with PHP v4.0.6+, but seems to
609 Run /demo/phpThumb.demo.check.php to examine your server
618 and ImageCopyResampled(). Also, there appears to be a
621 to the background color (due to a rounding error?)
624 version has bugs which may cause PHP to crash:
631 Most (if not all) filters require GD v2.x to function