//////////////////////////////////////////////////////////////
///  phpThumb() by James Heinrich <info@silisoftware.com>   //
//        available at http://phpthumb.sourceforge.net     ///
//////////////////////////////////////////////////////////////

v1.4.4 - June 8, 2004
  * Bugfix: network-share (Windows) source filenames were
    not possible. Now works, but you must use the network
    name and not a mapped drive name, for example:
    \\othercomputer\file.jpg - good
    \\192.168.2.1\file.jpg - good
    z:\file.jpg - won't work
    This is a PHP limitation (see www.php.net/file-exists)
    Note: you may want to use "/" slashes instead of "\" if
    you have magic_quotes_gpc enabled to avoid stripslashes
    problems.
    (thanks drrhodes360*com)
  * Bugfix: missing "phpthumb_functions::" in
    ImageCreateFromStringReplacement()
    (thanks zapletalsoftwaremedia*cz)

v1.4.3 - May 25, 2004
  * Added new configuration variable 'config_temp_directory'
    to allow you to specify a writable directory name for
    temp files if you do not have access to the system temp
    directory on your server (Safe Mode restrictions etc)
    (thanks nickregenmag*com)
  * Added new configuration variable
    'config_error_die_on_error' which can be set to false if
    you want to retrieve the error message without having it
    dumped as an image - the error message is now available
    in $phpThumb->error
  * Images are passed through directly with no processing
    and no caching if no parameters are passed to alter the
    image (resize, crop, sharpening, etc)
    (thanks nchmurausers*sourceforge*net)
  * Added new configuration variable 'config_disable_debug'
    which disabled phpThumbDebug from working if you have
    security concerns about the displayed information
  * Bugfix: Added detection at the top of phpThumb.php for
    no-GD errors to avoid parse errors later in the code
    (thanks nickregenmag*com)
  * Bugfix: RoundedImageCorners() had some off-by-1 errors
    (thanks ola*thunberghome*se)

v1.4.2 - May 10, 2004
  * Added IE-compatability mode for transparent corners
    (set 'bct=256')
  * Bugfix: version_compare_replacement() was broken in PHP
    older than 4.1.0 (thanks nickregenmag*com)

v1.4.1.1 - May 9, 2004
 * Bugfix: Removed ImageTrueColorToPalette hack.
   See http://bugs.php.net/bug.php?id=28341
 * Bugfix: 'maxb' option for PNG/GIF output incorrect
   bit depth under some circumstances

v1.4.1 - May 9, 2004
 * Added 'maxb' (MAXimum Bytes) option to auto-set the
   output image quality (JPEG) or bit depth (PNG/GIF) so
   that the output thumbnail is less than 'maxb' bytes
   (thanks e_bellehotmail*com)
 * Added 'bgt' parameter to make rounded corners from
   'brx'/'bry' option transparent when used with PNG
   output. Note: PHP/GD appears buggy at this time, so this
   option must force output to 256-color mode for this
   to work. The feature will be updated when a non-broken
   version of PHP/GD is released.
   (thanks javierircorion*net)
 * Bugfix: Caching was broken
   (thanks mikegdaymate*nl, jurewiczgo3*pl)

v1.4.0 - April 30, 2004
 * Rewritten as a PHP class. Split into several files:
   - phpthumb.class.php        = most processing code
   - phpthumb.functions.php    = support functions
   - phpthumb.readme.txt       = usage instructions
   - phpthumb.changelog.txt    = this file
   - phpthumb.config.php       = configuration file
   - phpthumb.gif.php          = Non-GD GIF reading support
   - phpthumb.unsharp.php      = Unsharp Masking support
   - phpThumb.php              = demo script that works
       exactly as previous versions; this is a drop-in
       replacement for existing phpThumb() installations
   - phpThumb.demo.showpic.php = demo script that auto-
       resizes a popup window to the size of the image
       shown. Useful if you want popup images but do not
       know the large image size beforehand
 * Added optional call-out to ImageMagick (if avaible) if
   source image is larger than PHP memory restrictions
   allow. ImageMagick installation should be auto-detected
   under *nix, but you should configure 'imagemagick_path'
   for use under Windows.
 * 'max_source_pixels' is now auto-calculated from PHP
   configuration settings. Due to various server-level
   restrictions that may override PHP settings this
   calculated value may not always be correct, and you may
   have to specify the value manually.
 * Added rounded-corner border option. You must specify
   both 'brx' (horizontal radius) and 'bry' (vertical
   radius) as well as 'bw' (border width). If 'bw' is
   greater than zero, the image will be shrunk to fit
   inside the border with a margin of background color.
   If 'bw' is zero, the corners of the image will be
   cut off and filled with background color.
   (thanks javierircorion*net)
 * Minor speed improvement for unsharp masking

v1.3.7 - March 28, 2004
 * Bugfix: GD version detection was broken on PHP <4.3.0
   on servers where phpinfo() was disabled
   (thanks javierircorion*net)
 * Bugfix: Non-GD GIF support was broken on restricted
   PHP configurations (thanks javierircorion*net)
 * Bugfix: phpThumb.gif.php output error messages if PHP
   was running in Safe Mode
 * Added 'iar' parameter (Ignore Aspect Ratio) to allow
   non-proportional resizing (stretch image to fit).
   You must specify 'h' and 'w' to use this option.
   (thanks javierircorion*net)

v1.3.6 - March 14, 2004
  * Bugfix: was broken when register_globals turned on
    (thanks joshgtwcny*rr*com)
  * Bugfix: Images with transparent backgrounds now have
    the background color filled with the color specified
    by the 'bg' parameter
  * Bugfix: ImageCreateFromString() is broken in the
    non-bundled GD. Added workaround, but please use
    the bundled version of GD if possible
    (thanks dnxbe*ch)
  * Bugfix: EXIF thumbnail caching was broken
  * Bugfix: EXIF thumbnail handling was broken for PHP
    v4.2.x (thanks smithk1shaw*ca)
  * Bugfix: Image borders with GD2 were misaligned
  * Bugfix: virtual paths/filenames like /~user/foo.jpg
    should now work properly, if PHP is installed as an
    Apache module (see www.php.net/apache-lookup-uri)
  * Bugfix: contents of any non-image file could be
    displayed (including PHP & HTML files)
    (thanks arsyanarsyan*com)
  * Added rotation parameters 'ra' and 'ar'
    (thanks drrhodes360*com)
  * Added $CONFIG['output_allow_enlarging'], defaulted
    to false, to prevent smaller-than-max-size images
    from being enlarged beyond their original size. If
    you want to be able to enlarge images, set this to
    false. Can be overridden with the 'aoe' parameter
    (thanks dnxbe*ch)
  * Changed all configuration variables to be under one
    array named $CONFIG
  * Moved color and font options for ErrorImage() to
    $CONFIG variables
  * Changed cached filename structure (again) to a more
    flexible format that can handle future expansion
    (old cached files are invalid and will be recreated)
  * Added more debugging code to phpThumbDebug

v1.3.5 - February 29, 2004
  * Added capability to use EXIF thumbnail that may be
    embedded in source image (often is in digital camera
    JPEGs) and source image dimensions are larger than
    $config_max_source_pixels. This will overcome the
    limitation where PHP runs out of memory processing
    large images (usually >1600x1200). EXIF thumbnail
    extraction requires PHP v4.2.0 or higher and EXIF
    support compiled into PHP (or php_exif extension)
  * Eliminated intermediate read-file-to-memory stage if
    image is created from local file. Should allow
    larger images to be processed without running out of
    memory.
  * Added optional 'goto' parameter to be used with the
    'file' parameter, where 'goto' is a URL that is
    redirected to after image is rendered to file
    (thanks wimblewebdonors*com)
  * Added optional 'xto' parameter that will bypass all
    processing and just return the embedded EXIF
    thumbnail, if available.
  * Added error-handling if ImageTypes() is unavailable

v1.3.4 - February 15, 2004
  * Custom error image option (&err=img.jpg) which can
    also be set as $config_error_message_image_default
    (thanks carl4thstar*net)
  * &f=text will now output plain-text error messages
  * ErrorImage() now used for anti-hotlink messages (if
    $config_nohotlink_erase_image is true)

v1.3.3 - February 5, 2004
  * Bugfix: Added stripslashes() to filenames if
    magic_quotes_gpc is enabled
    (thanks arsyanarsyan*com)
  * Output can now be rendered to a file only (not to
    browser) specified by the 'file' parameter
    (thanks arsyanarsyan*com)
  * JPEG quality now has a maximum of 95%, as specified
    in the GD documentation

v1.3.2.1 - February 3, 2004
  * Bugfix: gd_version() was broken for GD v2.0+
  * Bugfix: removed debugging code

v1.3.2 - February 3, 2004
  * Bugfix: when borders are enabled, portait images
    with no width constraint, or landscape images with
    no height constraint were smaller than neccesary by
    double the border width (thanks jjjxs4all*nl)
  * Added unsharp mask option thanks to Torstein Hnsi:
    http://www.vikjavev.com/hovudsida/umtestside.php
    Note: requires GD v2.x to function
    (thanks jjjxs4all*nl)
  * Updated cache filenames to reflect new parameters,
    this means old cached files will need to be deleted
    (or not, they just will never get called again) and
    new cached versions will be created.
  * Added caching to gd_info() calls for minor speedup

v1.3.1 - February 2, 2004
  * Added optional border (width and color configurable)
    (thanks arsyanarsyan*com)
  * Added option to create fixed-dimension thumbnails
    regardless of source aspect ration. Set the 'bw'
    (BorderWidth) parameter (even to 0) and this will be
    enabled. Outside the actual image will be filled
    with 'bg' color (default FFFFFF)
    (thanks arsyanarsyan*com)

v1.3.0 - January 27, 2004
  * Added watermarking option to overlay thumbnails with
    a semi-transparent watermark image (copied from a
    seperate source watermark image)
    (thanks arsyanarsyan*com)
  * Added option for absolute filenames (on both Windows
    and *nix) outside the DOCUMENT_ROOT directory
  * Added debug output dump for diagnosing problems)

v1.2.8 - January 19, 2004
  * added ability to specify relative pathnames as well
    as absolute pathnames (pathname is relative to the
    location of phpThumb.php if the passed source does
    not begin with "/"

v1.2.7 - January 7, 2004
  * Added patch to allow use of PHP older than 4.1.0
      (or GD without PNG support) for non-GD GIF support
      (thanks hostwebserverhotmail*com

v1.2.6 - January 4, 2004
  * Added patch to allow use of PHP older than 4.1.0
    (without the superglobals arrays)

v1.2.5 - December 26, 2003
  * Added configuration options for default output image
    format and max width/height

v1.2.4 - December 20, 2003
  * Bugfix: temp directory for non-native GD support not
    always returning valid directory
  * Caching feature reintroduced (see configuration)

v1.2.3 - December 19, 2003
  * Added anti-hotlink code so the thumbnail script on
    one domain cannot be used by another domain. The
    list of allowed domains defaults to the current
    domain but is configurable below as
    $config_nohotlink_valid_domains. The message, text
    size, colors and whether to blank the image or not
    are also configurable
  * Bugfix: URL image sources were not able to use the
    non-GD GIF-reading functions

v1.2.2 - December 17, 2003
  * Added option to use http:// URL as image source

v1.2.1 - December 11, 2003
  * Added option to get source data from a database
    rather than a physical file
  * Bugfix: resize not proportional when wide image
    limited more by max height than max width
    Thanks mathias_strassergmx*net
  * Removed caching code

v1.2.0 - December 10, 2003
  * Added GIF support for versions of GD that do not
    have built-in GIF support (v1.6.x) via the "GIF
    Util" class by Fabien Ezber (www.yamasoft.com)
    GD's built-in GIF-reading functions are faster, and
    are present in PHP v4.3.0 or newer, but all versions
    of GD can display resized GIF thumbnails now.

v1.1.2 - October 26, 2003
  * check for source image existance to prevent text
    error messages
  * if GD not available, a GIF saying "no GD" is shown
    instead of showing the original image

v1.1.1 - September 28, 2003
  * better resize code by sfisher10cox*net

v1.1.0 - September 1, 2003
  * initial public release
  * thumbnails can now be larger than source image
  * graphical error messages

v1.0.0 - January 7, 2002
  * initial private release
