phpThumb() - The PHP thumbnail generator

Related tags

Imagery phpThumb
Overview

phpThumb

phpThumb() - The PHP thumbnail generator

phpThumb() uses the GD library and/or ImageMagick to create thumbnails from images (GIF, PNG or JPEG) on the fly. The output size is configurable (can be larger or smaller than the source), and the source may be the entire image or only a portion of the original image. True color and resampling is used if GD v2.0+ is available, otherwise low-color and simple resizing is used. Source image can be a physical file on the server or can be retrieved from a database. GIFs are supported on all versions of GD even if GD does not have native GIF support thanks to the GIFutil class by Fabien Ezber. AntiHotlinking feature prevents other people from using your server to resize their thumbnails, or link to your images from another server. The cache feature reduces server load.

Comments
  • Prevent image resize if it smaller than w and h

    Prevent image resize if it smaller than w and h

    Hello. If image width and height values smaller than w and h values than image will stretch to w and h values. It's bug, or it's a normal behavior? And how we can prevent this?

    opened by Kila14 20
  • Getting error, don't know how to  interpret it

    Getting error, don't know how to interpret it

    I've gotten phpThumb to the point where it gives me the error box, so I assume my paths are correct. When I enable debugging and look at the error message, I get the following, but I have no idea what it is trying to tell me. Thanks for any help you can provide. Is there anyplace I can go to help me decode the error listing in the future?

    phpThumb() v1.7.13-201406261000
    http://phpthumb.sourceforge.net
    
    phpThumb() version          = 1.7.13-201406261000
    phpversion()                = 5.6.23
    PHP_OS                      = Linux
    $_SERVER[SERVER_SOFTWARE]   = Apache
    __FILE__                    = /homepages/44/d615211338/htdocs/newtonart/membership/resize/phpthumb.class.php
    realpath(.)                 = /homepages/44/d615211338/htdocs/newtonart/membership/resize
    $_SERVER[PHP_SELF]          = /newtonart/membership/resize/phpThumb.php
    $_SERVER[HOST_NAME]         = 
    $_SERVER[HTTP_REFERER]      = 
    $_SERVER[QUERY_STRING]      = src=resize/images/B-52.jpg&w=150&hash=7cefac68245d02618600b9bc5f4db971
    $_SERVER[PATH_INFO]         = 
    $_SERVER[DOCUMENT_ROOT]     = /kunden/homepages/44/d615211338/htdocs
    getenv(DOCUMENT_ROOT)       = /kunden/homepages/44/d615211338/htdocs
    
    get_magic_quotes_gpc()         = FALSE
    get_magic_quotes_runtime()     = FALSE
    error_reporting()              = integer     32767
    ini_get(error_reporting)       = string(1)   "0"
    ini_get(display_errors)        = string(1)   "1"
    ini_get(allow_url_fopen)       = string(1)   "1"
    ini_get(disable_functions)     = string(0)   ""
    get_cfg_var(disable_functions) = FALSE
    ini_get(safe_mode)             = FALSE
    ini_get(open_basedir)          = string(0)   ""
    ini_get(max_execution_time)    = string(2)   "60"
    ini_get(memory_limit)          = string(4)   "256M"
    get_cfg_var(memory_limit)      = string(4)   "256M"
    memory_get_usage()             = integer     1083452
    
    $this->config_prefer_imagemagick            = TRUE
    $this->config_imagemagick_path              = NULL
    $this->ImageMagickWhichConvert()            = /usr/bin/convert
    [actual ImageMagick path used]              = string(16)  "/usr/bin/convert"
    file_exists([actual ImageMagick path used]) = TRUE
    ImageMagickVersion(false)                   = 6.6.0-4 2015-11-27 Q16 
    ImageMagickVersion(true)                    = Version: ImageMagick 6.6.0-4 2015-11-27 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
    Features: OpenMP
    
    $this->config_cache_directory               = string(66)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/"
    $this->config_cache_directory_depth         = integer     2
    $this->config_cache_disable_warning         = FALSE
    $this->config_cache_maxage                  = NULL
    $this->config_cache_maxsize                 = NULL
    $this->config_cache_maxfiles                = NULL
    $this->config_cache_force_passthru          = TRUE
    $this->cache_filename                       = string(188) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//2/27/phpThumb_cache_cyberartisans.info__src278667ec27be9d2b504f25c2d39d6408_par0b9e73569dbbfe81d5e1ff2a11d92887_dat0.jpeg"
    is_readable($this->config_cache_directory)  = TRUE
    is_writable($this->config_cache_directory)  = TRUE
    is_readable($this->cache_filename)          = FALSE
    is_writable($this->cache_filename)          = n/a
    
    $this->config_document_root                  = string(31)  "/homepages/44/d615211338/htdocs"
    $this->config_temp_directory                 = string(65)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache"
    $this->config_output_format                  = string(4)   "jpeg"
    $this->config_output_maxwidth                = integer     0
    $this->config_output_maxheight               = integer     0
    $this->config_error_message_image_default    = string(0)   ""
    $this->config_error_bgcolor                  = string(6)   "CCCCFF"
    $this->config_error_textcolor                = string(6)   "FF0000"
    $this->config_error_fontsize                 = integer     1
    $this->config_error_die_on_error             = TRUE
    $this->config_error_silent_die_on_error      = FALSE
    $this->config_error_die_on_source_failure    = TRUE
    $this->config_nohotlink_enabled              = TRUE
    $this->config_nohotlink_valid_domains        = array(1) {   [0]=>   string(18) "cyberartisans.info" } 
    $this->config_nohotlink_erase_image          = TRUE
    $this->config_nohotlink_text_message         = string(38)  "Off-server thumbnailing is not allowed"
    $this->config_nooffsitelink_enabled          = TRUE
    $this->config_nooffsitelink_valid_domains    = array(1) {   [0]=>   string(18) "cyberartisans.info" } 
    $this->config_nooffsitelink_require_refer    = FALSE
    $this->config_nooffsitelink_erase_image      = FALSE
    $this->config_nooffsitelink_text_message     = string(35)  "Image taken from cyberartisans.info"
    $this->config_high_security_enabled          = TRUE
    $this->config_allow_src_above_docroot        = FALSE
    $this->config_allow_src_above_phpthumb       = TRUE
    $this->config_max_source_pixels              = float       44739243
    $this->config_use_exif_thumbnail_for_speed   = FALSE
    $this->config_border_hexcolor                = string(6)   "000000"
    $this->config_background_hexcolor            = string(6)   "FFFFFF"
    $this->config_ttf_directory                  = string(65)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/fonts"
    $this->config_disable_pathinfo_parsing       = TRUE
    $this->config_disable_imagecopyresampled     = FALSE
    
    $this->phpThumbDebug               = integer     9
    $this->thumbnailQuality            = integer     75
    $this->thumbnailFormat             = string(4)   "jpeg"
    $this->gdimg_output                = NULL
    $this->gdimg_source                = FALSE
    $this->sourceFilename              = string(82)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg"
    $this->source_width                = NULL
    $this->source_height               = NULL
    $this->thumbnailCropX              = NULL
    $this->thumbnailCropY              = NULL
    $this->thumbnailCropW              = NULL
    $this->thumbnailCropH              = NULL
    $this->exif_thumbnail_width        = NULL
    $this->exif_thumbnail_height       = NULL
    $this->exif_thumbnail_type         = NULL
    $this->thumbnail_width             = NULL
    $this->thumbnail_height            = NULL
    $this->thumbnail_image_width       = NULL
    $this->thumbnail_image_height      = NULL
    strlen($this->rawImageData)        = 0
    strlen($this->exif_thumbnail_data) = 0
    
    $this->src  = string(82)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg"
    $this->new  = NULL
    $this->w    = string(3)   "150"
    $this->h    = FALSE
    $this->f    = string(0)   ""
    $this->q    = integer     75
    $this->sx   = NULL
    $this->sy   = NULL
    $this->sw   = NULL
    $this->sh   = NULL
    $this->far  = NULL
    $this->bg   = NULL
    $this->bc   = NULL
    $this->file = NULL
    $this->goto = NULL
    $this->err  = NULL
    $this->xto  = NULL
    $this->ra   = NULL
    $this->ar   = NULL
    $this->aoe  = NULL
    $this->iar  = NULL
    $this->maxb = NULL
    
    builtin_function_exists(exif_thumbnail)          = TRUE
    builtin_function_exists(gd_info)                 = TRUE
    builtin_function_exists(image_type_to_mime_type) = TRUE
    builtin_function_exists(GetImageSize)            = TRUE
    builtin_function_exists(ImageCopyResampled)      = TRUE
    builtin_function_exists(ImageCopyResized)        = TRUE
    builtin_function_exists(ImageCreate)             = TRUE
    builtin_function_exists(ImageCreateFromString)   = TRUE
    builtin_function_exists(ImageCreateTrueColor)    = TRUE
    builtin_function_exists(ImageIsTrueColor)        = TRUE
    builtin_function_exists(ImageRotate)             = TRUE
    builtin_function_exists(ImageTypes)              = TRUE
    builtin_function_exists(version_compare)         = TRUE
    builtin_function_exists(ImageCreateFromGIF)      = TRUE
    builtin_function_exists(ImageCreateFromJPEG)     = TRUE
    builtin_function_exists(ImageCreateFromPNG)      = TRUE
    builtin_function_exists(ImageCreateFromWBMP)     = TRUE
    builtin_function_exists(ImageCreateFromXBM)      = TRUE
    builtin_function_exists(ImageCreateFromXPM)      = FALSE
    builtin_function_exists(ImageCreateFromString)   = TRUE
    builtin_function_exists(ImageCreateFromGD)       = TRUE
    builtin_function_exists(ImageCreateFromGD2)      = TRUE
    builtin_function_exists(ImageCreateFromGD2Part)  = TRUE
    builtin_function_exists(ImageJPEG)               = TRUE
    builtin_function_exists(ImageGIF)                = TRUE
    builtin_function_exists(ImagePNG)                = TRUE
    builtin_function_exists(ImageWBMP)               = TRUE
    
    gd_info.GD Version                         = string(26)  "bundled (2.1.0 compatible)"
    gd_info.FreeType Support                   = TRUE
    gd_info.FreeType Linkage                   = string(13)  "with freetype"
    gd_info.T1Lib Support                      = FALSE
    gd_info.GIF Read Support                   = TRUE
    gd_info.GIF Create Support                 = TRUE
    gd_info.JPEG Support                       = TRUE
    gd_info.PNG Support                        = TRUE
    gd_info.WBMP Support                       = TRUE
    gd_info.XPM Support                        = FALSE
    gd_info.XBM Support                        = TRUE
    gd_info.WebP Support                       = FALSE
    gd_info.JIS-mapped Japanese Font Support   = FALSE
    
    exif_info.EXIF Support               = string(7)   "enabled"
    exif_info.EXIF Version               = string(51)  "1.4 $Id: db007ca2e6d0b4513ae77990972997fad8bfe9c9 $"
    exif_info.Supported EXIF Version     = string(4)   "0220"
    exif_info.Supported filetypes        = string(9)   "JPEG,TIFF"
    
    ApacheLookupURIarray() -- FAILED
    
    $_GET[src]                           = string(22)  "resize/images/B-52.jpg"
    $_GET[w]                             = string(3)   "150"
    $_GET[hash]                          = string(32)  "7cefac68245d02618600b9bc5f4db971"
    $_GET[phpThumbDebug]                 = integer     9
    
    $this->debugmessages:
      * phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
      * setParameter(config_document_root, string(31)  "/homepages/44/d615211338/htdocs") in file "phpThumb.php" on line 152
      * setParameter(config_high_security_enabled, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_high_security_url_separator, string(1)   "&") in file "phpThumb.php" on line 152
      * setParameter(config_disable_debug, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_allow_src_above_docroot, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_allow_src_above_phpthumb, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_auto_allow_symlinks, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_additional_allowed_dirs, array(0) { } ) in file "phpThumb.php" on line 152
      * setParameter(config_cache_directory, string(66)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/") in file "phpThumb.php" on line 152
      * setParameter(config_cache_disable_warning, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_cache_directory_depth, integer     2) in file "phpThumb.php" on line 152
      * setParameter(config_cache_maxage, NULL) in file "phpThumb.php" on line 152
      * setParameter(config_cache_maxsize, NULL) in file "phpThumb.php" on line 152
      * setParameter(config_cache_maxfiles, NULL) in file "phpThumb.php" on line 152
      * setParameter(config_cache_source_enabled, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_cache_source_directory, string(73)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/source/") in file "phpThumb.php" on line 152
      * setParameter(config_cache_source_filemtime_ignore_local, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_cache_source_filemtime_ignore_remote, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_cache_default_only_suffix, string(0)   "") in file "phpThumb.php" on line 152
      * setParameter(config_cache_prefix, string(34)  "phpThumb_cache_cyberartisans.info_") in file "phpThumb.php" on line 152
      * setParameter(config_cache_force_passthru, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_temp_directory, string(66)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/") in file "phpThumb.php" on line 152
      * setParameter(config_prefer_imagemagick, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_imagemagick_use_thumbnail, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_imagemagick_path, NULL) in file "phpThumb.php" on line 152
      * setParameter(config_max_source_pixels, float       44739243) in file "phpThumb.php" on line 152
      * setParameter(config_output_format, string(4)   "jpeg") in file "phpThumb.php" on line 152
      * setParameter(config_output_maxwidth, integer     0) in file "phpThumb.php" on line 152
      * setParameter(config_output_maxheight, integer     0) in file "phpThumb.php" on line 152
      * setParameter(config_output_interlace, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_error_image_width, integer     400) in file "phpThumb.php" on line 152
      * setParameter(config_error_image_height, integer     100) in file "phpThumb.php" on line 152
      * setParameter(config_error_message_image_default, string(0)   "") in file "phpThumb.php" on line 152
      * setParameter(config_error_bgcolor, string(6)   "CCCCFF") in file "phpThumb.php" on line 152
      * setParameter(config_error_textcolor, string(6)   "FF0000") in file "phpThumb.php" on line 152
      * setParameter(config_error_fontsize, integer     1) in file "phpThumb.php" on line 152
      * setParameter(config_error_die_on_error, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_error_silent_die_on_error, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_error_die_on_source_failure, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_nohotlink_enabled, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_nohotlink_valid_domains, array(1) {   [0]=>   string(18) "cyberartisans.info" } ) in file "phpThumb.php" on line 152
      * setParameter(config_nohotlink_erase_image, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_nohotlink_text_message, string(38)  "Off-server thumbnailing is not allowed") in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_enabled, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_valid_domains, array(1) {   [0]=>   string(18) "cyberartisans.info" } ) in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_require_refer, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_erase_image, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_watermark_src, string(26)  "/demo/images/watermark.png") in file "phpThumb.php" on line 152
      * setParameter(config_nooffsitelink_text_message, string(35)  "Image taken from cyberartisans.info") in file "phpThumb.php" on line 152
      * setParameter(config_border_hexcolor, string(6)   "000000") in file "phpThumb.php" on line 152
      * setParameter(config_background_hexcolor, string(6)   "FFFFFF") in file "phpThumb.php" on line 152
      * setParameter(config_ttf_directory, string(65)  "/homepages/44/d615211338/htdocs/newtonart/membership/resize/fonts") in file "phpThumb.php" on line 152
      * setParameter(config_http_user_agent, string(109) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36") in file "phpThumb.php" on line 152
      * setParameter(config_disable_pathinfo_parsing, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_disable_imagecopyresampled, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_disable_onlycreateable_passthru, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_http_fopen_timeout, integer     10) in file "phpThumb.php" on line 152
      * setParameter(config_http_follow_redirect, TRUE) in file "phpThumb.php" on line 152
      * setParameter(config_allow_local_http_src, FALSE) in file "phpThumb.php" on line 152
      * setParameter(config_use_exif_thumbnail_for_speed, FALSE) in file "phpThumb.php" on line 152
      * setParameter(src, string(22)  "resize/images/B-52.jpg") in file "phpThumb.php" on line 329
      * resolvePath: /homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg (allowed_dirs: Array
    (
    )
    ) in file "phpthumb.class.php" on line 1096
      * resolvePath: iteration, path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg, base path = /homepages/44/d615211338/htdocs in file "phpthumb.class.php" on line 1115
      * open_basedir: "" in file "phpthumb.class.php" on line 1082
      * resolvePath: stop at component 11 in file "phpthumb.class.php" on line 1131
      * resolvePath: stop at path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg in file "phpthumb.class.php" on line 1134
      * resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
      * setSourceFilename(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) set $this->sourceFilename to "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" in file "phpthumb.class.php" on line 271
      * setParameter(w, string(3)   "150") in file "phpThumb.php" on line 329
      * setParameter(hash, string(32)  "7cefac68245d02618600b9bc5f4db971") in file "phpThumb.php" on line 329
      * setParameter(phpThumbDebug, integer     9) in file "phpThumb.php" on line 329
      * $CanPassThroughDirectly=false because !@is_readable(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) in file "phpThumb.php" on line 376
      * $CanPassThroughDirectly=false because $_GET[hash] are set in file "phpThumb.php" on line 410
      * $CanPassThroughDirectly="0" && $phpThumb->src="/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" in file "phpThumb.php" on line 421
      * Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
      * $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
      * $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
      * $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
      * SetCacheFilename() _src set from md5($this->sourceFilename) "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" = "278667ec27be9d2b504f25c2d39d6408" in file "phpthumb.class.php" on line 3443
      * SetCacheFilename() _par set from md5(_w150_dpi150_q75) in file "phpthumb.class.php" on line 3476
      * Cached file "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//2/27/phpThumb_cache_cyberartisans.info__src278667ec27be9d2b504f25c2d39d6408_par0b9e73569dbbfe81d5e1ff2a11d92887_dat0.jpeg" does not exist, processing as normal in file "phpThumb.php" on line 511
      * ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/homepages/44/d615211338/htdocs) to $filename (/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) resulting in ($AbsoluteFilename = "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg") in file "phpthumb.class.php" on line 1216
      * resolvePath: /homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg (allowed_dirs: Array
    (
    )
    ) in file "phpthumb.class.php" on line 1096
      * resolvePath: iteration, path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg, base path = /homepages/44/d615211338/htdocs in file "phpthumb.class.php" on line 1115
      * resolvePath: stop at component 11 in file "phpthumb.class.php" on line 1131
      * resolvePath: stop at path=/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg in file "phpthumb.class.php" on line 1134
      * resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
      * $this->sourceFilename set to "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" in file "phpthumb.class.php" on line 849
      * phpThumb() v1.7.13-201406261000
    http://phpthumb.sourceforge.net
    
    "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" does not exist in file "phpthumb.class.php" on line 4050
      * $this->cache_filename already set, skipping SetCacheFilename() in file "phpthumb.class.php" on line 3398
      * starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
      * GetImageSize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) says image is x in file "phpthumb.class.php" on line 3246
      * GetImageSize("/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg") failed in file "phpthumb.class.php" on line 3279
      * $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
      * phpThumb_tempnam() returning "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/pThumbmB6at5" in file "phpthumb.class.php" on line 4275
      * ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1445
      * ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1445
      * GetImageSize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) FAILED with error "<br />
    <b>Warning</b>:  getimagesize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg): failed to open stream: No such file or directory in <b>/homepages/44/d615211338/htdocs/newtonart/membership/resize/phpthumb.class.php</b> on line <b>1596</b><br />
    " in file "phpthumb.class.php" on line 1602
      * GetImageSize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) failed in file "phpthumb.class.php" on line 1749
      * Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2132
      * ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1442
      * ImageMagick called as (convert -density '150' -thumbnail '150x' -quality '75' -interlace line  '/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg[0]' jpeg:'/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/pThumbmB6at5' 2>&1) in file "phpthumb.class.php" on line 2151
      * ImageMagick failed with message (convert: unable to open image `/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg':  @ error/blob.c/OpenBlob/2489.
    convert: missing an image filename `jpeg:/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/pThumbmB6at5' @ error/convert.c/ConvertImageCommand/2940.) in file "phpthumb.class.php" on line 2156
      * deleting "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache/pThumbmB6at5" in file "phpthumb.class.php" on line 2188
      * ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
      * SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
      * SetOrientationDependantWidthHeight() setting w="150", h="0" in file "phpthumb.class.php" on line 3231
      * EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
      * starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
      * starting ImageCreateFromFilename(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) in file "phpthumb.class.php" on line 3518
      * empty $filename or GetImageSize(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) failed in file "phpthumb.class.php" on line 3567
      * Populating $rawimagedata in file "phpthumb.class.php" on line 3575
      * cannot fopen(/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg) in file "phpthumb.class.php" on line 3586
      * Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
      * $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
      * ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
      * phpThumb() v1.7.13-201406261000
    http://phpthumb.sourceforge.net
    
    failed to open "/homepages/44/d615211338/htdocs/newtonart/membership/resize/resize/images/B-52.jpg" SourceImageToGD() [3832] in file "phpthumb.class.php" on line 4050
      * SourceImageToGD() failed in file "phpthumb.class.php" on line 351
      * CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file "phpthumb.class.php" on line 667
      * CleanUpCacheDirectory() skipped because "/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 677
      * RenderOutput() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 425
      * RenderOutput [jpeg(/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//2/27/phpThumb_cache_cyberartisans.info__src278667ec27be9d2b504f25c2d39d6408_par0b9e73569dbbfe81d5e1ff2a11d92887_dat0.jpeg)] failed in file "phpthumb.class.php" on line 561
      * Failed: RenderToFile(/homepages/44/d615211338/htdocs/newtonart/membership/resize/cache//2/27/phpThumb_cache_cyberartisans.info__src278667ec27be9d2b504f25c2d39d6408_par0b9e73569dbbfe81d5e1ff2a11d92887_dat0.jpeg) in file "phpThumb.php" on line 611
    
    $this->debugtiming:
      * 1468441921.565079 : phpThumb() constructor in file "phpthumb.class.php" on line 219
      * 1468441921.556154 : phpThumb.php start in file "phpThumb.php" on line 119
      * 1468441921.566272 : phpThumbDebug[0] in file "phpThumb.php" on line 211
      * 1468441921.566301 : phpThumbDebug[1] in file "phpThumb.php" on line 267
      * 1468441921.566333 : phpThumbDebug[2] in file "phpThumb.php" on line 314
      * 1468441921.566527 : phpThumbDebug[3] in file "phpThumb.php" on line 348
      * 1468441921.566574 : phpThumbDebug[4] in file "phpThumb.php" on line 415
      * 1468441921.566592 : phpThumbDebug[5] in file "phpThumb.php" on line 500
      * 1468441921.566767 : phpThumbDebug[6] in file "phpThumb.php" on line 516
      * 1468441921.566789 : phpThumbDebug[7] in file "phpThumb.php" on line 581
      * 1468441921.579171 : phpThumbDebug[8] in file "phpThumb.php" on line 591
      * 1468441921.579317 : phpThumbDebug[9] in file "phpThumb.php" on line 624
      * Total processing time: 0.023163
    
    opened by jspencer177 18
  • Transparency information is lost

    Transparency information is lost

    Hello,

    I'm using latest phpThumb from master and no matter what parameters I set, the trasparency information on the generated thumbnail is always lost.

    <?php
    require_once(dirname(__FILE__) . '/lib/phpthumb.class.php');
    
    $phpThumb = new phpThumb();
    $phpThumb->setParameter('config_disable_debug', false);
    $phpThumb->setParameter('config_allow_src_above_docroot', true);
    $phpThumb->setSourceFilename(dirname(__FILE__) . '/test-alpha.png');
    
    $phpThumb->setParameter('w', 320);
    $phpThumb->setParameter('h', 320);
    
    $phpThumb->setParameter('zc', 'C');
    $phpThumb->setParameter('f', 'png');
    
    $phpThumb->GenerateThumbnail();
    $phpThumb->RenderToFile(dirname(__FILE__) . "/result.png");
    

    The transparent png is this one: test-alpha

    and the result.png is this (of course it looks identical because the background of the page here is also white!) result

    Is this a known problem? Do you know of any workaround to preserve the transparency in the generated thumbnail?

    Thanks!

    opened by anyguy 14
  • Certain images not showing.

    Certain images not showing.

    In the debug file, there seems to be this line that's indicating a problem with the source, but viewing the URL shows the image fine.

    Error opening "https://www.bellavou.co.uk:443/wp-content/uploads/rear-view-woman-weight-loss-tummy-tuck-liposuction-150x150.jpg":

    I have other images on the page displaying okay, and both of tem run on my local copy. Is there anywhere else in the debug file I can look? I have tried clearing cache.

    opened by ghost 14
  • Unable to display image with PHP 8.1.

    Unable to display image with PHP 8.1.

    Hi

    Unable to display image with PHP 8.1. There are some deprecated coding changes. Can we expect an update soon?

    For now, I have removed the codes that cause the error, but it seems that there will be other problems in the future.

    Thank you

    opened by yepkoo 11
  • failed to open

    failed to open "test/phpThumb/images/" error

    Am using this value the "phpThumb :: sample photo gallery demo" page:

    $basedir = 'test/phpThumb/images/'; (this is the path to my webroot for the images folder, as exists in the unzipped directory...) I am using this on my local web server; All files have good permissions, and the phpThumb.demo.check.php page gives acceptable results except for one red item: php_sapi_name(): apache2handler

    I get; This is a demo of how you can use phpThumb() in an image gallery. failed to open "test/phpThumb/images/"

    I am using this on my local web server; All files have good permissions, and the phpThumb.demo.check.php page gives acceptable results except for one red item: php_sapi_name(): apache2handler

    The sample photo gallery almost works on my production server, which shows in orange: php_sapi_name(): cgi-fcgi

    The page comes up, but the images are broken; opening the images in another tab references phpThumb.php?src=test%2FphpThumb%2Fimages%2F%2Fmask05.png&zc=1&w=120&h=120

    opened by HillbillyGeek 11
  • Not Deleting From Cache

    Not Deleting From Cache

    I have the following set:

    $PHPTHUMB_CONFIG['cache_maxage'] = null;            // never delete cached thumbnails based on last-access time
    $PHPTHUMB_CONFIG['cache_maxsize'] = 20 * 1024 * 1024; // delete least-recently-accessed cached thumbnails when more than [20MB] of cached files are present (value is maximum bytesize of all cached files)
    $PHPTHUMB_CONFIG['cache_maxfiles'] = null;          // never delete cached thumbnails based on number of cached files
    

    But my cache directory is currently 37MB. What can I do to troubleshoot this? All cache checks are green when I run phpThumb.demo.check.php

    opened by FiZiX 11
  • Magic quotes is deprecated in php 7.4.2

    Magic quotes is deprecated in php 7.4.2

    Getting error caused by function call

    Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/.../phpThumb/phpThumb.php on line 222
    **Headers already sent in file "/home/.../phpThumb/phpThumb.php" on line "222", dumping error message as text:**
    

    phpThumb.php on line 222

    if (get_magic_quotes_gpc()) {
    	// deprecated: 'err', 'file', 'goto',
    	$RequestVarsToStripSlashes = array('src', 'wmf', 'down');
    	foreach ($RequestVarsToStripSlashes as $key) {
    		if (isset($_GET[$key])) {
    			if (is_string($_GET[$key])) {
    				$_GET[$key] = stripslashes($_GET[$key]);
    			} else {
    				unset($_GET[$key]);
    			}
    		}
    	}
    }
    

    removing or commenting this condition solves the error

    opened by sashabeep 10
  • How to set expiry for using with W3 Total Cache and Page Speed Insights

    How to set expiry for using with W3 Total Cache and Page Speed Insights

    Hi James,

    Great plugin! Quick question though, because these images are no longer images and are in fact PHP files, when running a Google Page Speed Insights test, all the images flag up as having no expiry date in the HTTP headers.

    I have W3 Total Cache installed, which sets expiry dates for all media files, but obviously these aren't seen as media files and are not touched.

    Is there anything in your plugin files that can set an expiry date, and not have the 24 hours, as Google Page Speed Insights is reporting?

    pagespeed insights

    opened by ghost 9
  • composer.json

    composer.json

    Hello,

    It would be nice to be able to load the phpThumb library as a dependency using the PHP dependency manager Composer (http://getcomposer.org).

    As the project is not currently a Composer package I have to define the repository in my project:

    {
        "name": "My Project",
        "minimum-stability": "dev",
        "prefer-stable": true,
        "repositories": [
            {
                "type": "package",
                "package": {
                    "name": "JamesHeinrich/phpThumb",
                    "version": "dev-master",
                    "source": {
                        "type": "git",
                        "url": "git://github.com/JamesHeinrich/phpThumb.git",
                        "reference": "master"
                    }
                }
            }
        ],
        "require": {
            "JamesHeinrich/phpThumb": "dev-master"
        },
        "autoload": {
            "files": [
                "vendor/JamesHeinrich/phpThumb/phpthumb.class.php"
            ]
        }
    }
    

    Could the phpThumb library be altered to include a composer.json file that defines it as a Composer package?

    It would also be lovely if other releases (1.7.11, 1.7.12, etc) are tagged and defined as versions. Then a project can specify which version of the library it requires.

    The autoloading of the class might be able to be tidied up too, possibly using the PSR-0 standard.

    All the best, Pete

    opened by peterhough 9
  • phpThumb detects wrong ImageMagick version

    phpThumb detects wrong ImageMagick version

    I had ImageMagick 6.9.8-3 installed but recently compiled a newer version 6.9.11-24 with HEIC support. Imagick is updated and works and phpinfo shows the correct versions installed. When I run a convert --version I get:

    Version: ImageMagick 6.9.11-24 Q16 x86_64 2020-07-30 https://imagemagick.org
    Copyright: © 1999-2020 ImageMagick Studio LLC
    License: https://imagemagick.org/script/license.php
    Features: Cipher DPC Modules
    Delegates (built-in): freetype heic jng jpeg ltdl png tiff webp wmf xml zlib
    

    Which is the new version. However, when I run the configuration demo, I still get the old version reported. Also HEIC images seem not to be supported, so for whatever reason phpThumb is still using the old version. Any way to rectify this?

    ImageMagick version: | /opt/bitnami/common/bin/convert [1] [1] [1] [1] [1]convert6.9.8-3 Q16

    I also get:

    sh: 1: ./identify: not found

    But it is definitely there when I run identify from the terminal.

    Thanks!

    opened by alexmla 8
  • file not existing warnings

    file not existing warnings

    Hi,

    I've beginning to see similar error messages 2-3 months ago. Since, I see some each and every day. I updated to the latest phpthumb version but it's not fixed.

    I don't understand, file existence is tested at line 585-586, but when the routine is executed, 2 warnings are issued about the file not existing and of course it doesn't exit.

    L 585: if (@is_readable($phpThumb->cache_filename)) { RedirectToCachedFile(); }

    Error log:

    [03-Jan-2023 13:34:28 Europe/London] PHP Warning: md5_file(/home/website/public_html/phpthumb/cache//2/24/241/241c/phpThumb_cache_websitem.com__src241c8bc9a337c655007f0d9d648f0bb5_parc4c1605620aa671602749d7a607a8d05_dat1649164802.jpeg): failed to open stream: No such file or directory in /home/website/public_html/phpthumb/phpThumb.php on line 99 [03-Jan-2023 13:34:28 Europe/London] PHP Stack trace: [03-Jan-2023 13:34:28 Europe/London] PHP 1. {main}() /home/website/public_html/phpthumb/phpThumb.php:0 [03-Jan-2023 13:34:28 Europe/London] PHP 2. RedirectToCachedFile() /home/website/public_html/phpthumb/phpThumb.php:586 [03-Jan-2023 13:34:28 Europe/London] PHP 3. md5_file($filename = '/home/website/public_html/phpthumb/cache//2/24/241/241c/phpThumb_cache_websitem.com__src241c8bc9a337c655007f0d9d648f0bb5_parc4c1605620aa671602749d7a607a8d05_dat1649164802.jpeg') /home/website/public_html/phpthumb/phpThumb.php:99 [03-Jan-2023 13:34:28 Europe/London] PHP Warning: file_get_contents(/home/website/public_html/phpthumb/cache//2/24/241/241c/phpThumb_cache_websitem.com__src241c8bc9a337c655007f0d9d648f0bb5_parc4c1605620aa671602749d7a607a8d05_dat1649164802.jpeg): failed to open stream: No such file or directory in /home/website/public_html/phpthumb/phpThumb.php on line 109 [03-Jan-2023 13:34:28 Europe/London] PHP Stack trace: [03-Jan-2023 13:34:28 Europe/London] PHP 1. {main}() /home/website/public_html/phpthumb/phpThumb.php:0 [03-Jan-2023 13:34:28 Europe/London] PHP 2. RedirectToCachedFile() /home/website/public_html/phpthumb/phpThumb.php:586 [03-Jan-2023 13:34:28 Europe/London] PHP 3. file_get_contents($filename = '/home/website/public_html/phpthumb/cache//2/24/241/241c/phpThumb_cache_websitem.com__src241c8bc9a337c655007f0d9d648f0bb5_parc4c1605620aa671602749d7a607a8d05_dat1649164802.jpeg') /home/website/public_html/phpthumb/phpThumb.php:109

    And of course, impossible to know what image or file caused this initially, I literally have hundreds of images using phpthumb.

    opened by i300220 0
  • PHP 8.1 error ~ passing null

    PHP 8.1 error ~ passing null

    PHP Version 8.1.13 warning ~

    [] PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /.../phpthumb/phpthumb.class.php on line 1990

    opened by badbadmonkey 7
  • Control quality for webp etc

    Control quality for webp etc

    1. How does one control the quality in Webp or other lossy formats like AVIF, is the q factor used same as JPEG?

    I am testing this and I get webp's of the same size regardless of how q is set, so I presume it's ignored atm. If I'm wrong please advise. They are also quite large so must be defaulting to a fairly high quality.

    1. Equally, we need a way to specify generation of lossless Webp etc. vs lossy. q=100 ?
    opened by badbadmonkey 0
  • Force PNGs to be 8-bit

    Force PNGs to be 8-bit

    I'm processing some logo files which are flat colours. If I convert them to PNG the files are always PNG-24 but ideally they should be PNG-8 as output files would be around a third of the size. Is there a way of forcing this? I've tried fltr[]=rcd|128 which partially works but results in a grey background, even though I'm setting bg=FFFFFF

    The only workaround I've found for now is to use GIF instead, which isn't ideal. Any ideas?

    opened by martbean 0
  • Images are broken on initial page load php 8.1

    Images are broken on initial page load php 8.1

    Images are broken on initial page load of new image until a page refresh is done. Only happens on php 8.1 not on 8.0 I have tried this test on different servers with php 8.1 and this is the result. Cache directory does fill up, but the image is broken in browser.

    opened by sks1024 6
  • Occassional errors of unknown origin

    Occassional errors of unknown origin

    Hello,

    first of all, thank you for your good work!

    The issue on my installation (PHP 8): For several months, an error of unknown origin has occurred from time to time. When it occurs, it occurs (for unknown reasons) exactly 6 times.

    The error messages look like this:

    phpThumb() v1.7.17-202109221111 in file "phpthumb.class.php" on line 234
    setSourceFilename(/home/mywebdir/html/mywebsite//assets/galleries/35/) set $this->sourceFilename to "/home/mywebdir/html/mywebsite//assets/galleries/35/" in file "phpthumb.class.php" on line 299
    Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1005
    $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;webp;png;jpeg) in file "phpthumb.class.php" on line 1011
    $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1022
    $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 1029
    $this->thumbnailQuality set to "85" in file "phpthumb.class.php" on line 1039
    resolvePath: /home/mywebdir/html/mywebsite//assets/galleries/35/ (allowed_dirs: Array ( ) ) in file "phpthumb.class.php" on line 1182
    resolvePath: iteration, path=/home/mywebdir/html/mywebsite//assets/galleries/35/, base path = /home/mywebdir/html/mywebsite in file "phpthumb.class.php" on line 1201
    open_basedir: "/home/mywebdir/:/tmp/:/opt/php-8.0/lib/php/:/dev/urandom" in file "phpthumb.class.php" on line 1168
    resolvePath: stop at component 10 in file "phpthumb.class.php" on line 1217
    resolvePath: stop at path=/home/mywebdir/html/mywebsite/assets/galleries/35 in file "phpthumb.class.php" on line 1220
    resolvePath: path parsed, over in file "phpthumb.class.php" on line 1226
    $this->sourceFilename set to "/home/mywebdir/html/mywebsite/assets/galleries/35" in file "phpthumb.class.php" on line 932
    phpThumb() v1.7.17-202109221111 http://phpthumb.sourceforge.net Error messages disabled. edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file "phpthumb.class.php" on line 4270
    SetCacheFilename() _src set from md5($this->sourceFilename) "/home/mywebdir/html/mywebsite/assets/galleries/35" = "16916372b794c224f0de077cab2f1975" in file "phpthumb.class.php" on line 3615
    SetCacheFilename() _par set from md5(_fltrwb_w600_dpi150_q85) in file "phpthumb.class.php" on line 3654
    starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3408
    getimagesize(/home/mywebdir/html/mywebsite/assets/galleries/35) failed in file "phpthumb.class.php" on line 3420
    getimagesize("/home/mywebdir/html/mywebsite/assets/galleries/35") failed in file "phpthumb.class.php" on line 3450
    $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1654
    phpThumb_tempnam() returning "/home/mywebdir/html/mywebsite/assets/cache/pThumbOi0nVA" in file "phpthumb.class.php" on line 4499
    ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1580
    getimagesize(/home/mywebdir/html/mywebsite/assets/galleries/35) FAILED with error "" in file "phpthumb.class.php" on line 1751
    ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1580
    getimagesize(/home/mywebdir/html/mywebsite/assets/galleries/35) failed in file "phpthumb.class.php" on line 1931
    ImageMagickSwitchAvailable(channel;contrast-stretch) = 1 in file "phpthumb.class.php" on line 1577
    Skipping $this->fltr[0] (wb) with ImageMagick in file "phpthumb.class.php" on line 2312
    Remaining $this->fltr after ImageMagick: (array(1) { [0]=> string(2) "wb" } ) in file "phpthumb.class.php" on line 2315
    ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1577
    ImageMagick called as (convert '/home/mywebdir/html/mywebsite/assets/galleries/35[0]' -flatten -density '150' -thumbnail '600x' -channel R -contrast-stretch '0.1%' -channel G -contrast-stretch '0.1%' -channel B -contrast-stretch '0.1%' +channel -quality '85' -interlace line jpeg:'/home/mywebdir/html/mywebsite/assets/cache/pThumbOi0nVA' 2>&1) in file "phpthumb.class.php" on line 2333
    ImageMagick failed with message (convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/560. convert-im6.q16: no images defined `jpeg:/home/mywebdir/html/mywebsite/assets/cache/pThumbOi0nVA' @ error/convert.c/ConvertImageCommand/3258.) in file "phpthumb.class.php" on line 2338
    deleting "/home/mywebdir/html/mywebsite/assets/cache/pThumbOi0nVA" in file "phpthumb.class.php" on line 2370
    ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3457
    SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3387
    SetOrientationDependantWidthHeight() setting w="600", h="0" in file "phpthumb.class.php" on line 3403
    EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3516
    starting SourceImageToGD() in file "phpthumb.class.php" on line 3782
    starting ImageCreateFromFilename(/home/mywebdir/html/mywebsite/assets/galleries/35) in file "phpthumb.class.php" on line 3695
    empty $filename or getimagesize(/home/mywebdir/html/mywebsite/assets/galleries/35) failed in file "phpthumb.class.php" on line 3746
    Populating $rawimagedata in file "phpthumb.class.php" on line 3754
    Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3854
    $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3906
    ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3908
    phpThumb() v1.7.17-202109221111 http://phpthumb.sourceforge.net Error messages disabled. edit phpThumb.config.php and (temporarily) set $PHPTHUMB_CONFIG['disable_debug'] = false; to view the details of this error in file "phpthumb.class.php" on line 4270
    SourceImageToGD() failed in file "phpthumb.class.php" on line 379
    -- 
    

    Any idea how to fix it?

    opened by php8-2021 0
Releases(v1.7.19)
  • v1.7.19(Nov 24, 2022)

    • #193 Composer - script hsp-generate for generate High Security Password
    • [bugfix: #196] PHP8 compatibility
    • [bugfix: #191] IMAGETYPE_AVIF not defined
    Source code(tar.gz)
    Source code(zip)
  • v1.7.18(Sep 14, 2022)

    • feature: #190 Add support for AVIF image format (requires PHP 8.1.0) for native PHP support.
    • bugfix: #190 Ensure that all used IMG_ and IMAGETYPE_ constants are always defined.
    • bugfix: #188 Fix some potential null-parameter warnings
    • bugfix: #187 PHP8 compatibility
    • bugfix: #185 PHP8 compatibility
    • bugfix: #183 Better message auth
    Source code(tar.gz)
    Source code(zip)
  • v1.7.17(Sep 22, 2021)

    • [bugfix: G171] problem with class_exists and autoloading
    • [bugfix: G173] file_get_contents instead of readfile
    • [bugfix: G178] missing quality parameter in webp
    • [bugfix: G181] missing webp in ImageCreateFromFilename
    Source code(tar.gz)
    Source code(zip)
  • v1.7.16(Feb 6, 2021)

    • ¤ PHP 8.0 compatibility
    • [bugfix: G168] bad call to $this inside static function
    • [bugfix: G167] realPathSafe() issues on Windows
    • [bugfix: G164] open_basedir on Windows prevents caching
    • [bugfix: G155] PHP 7.4 compatibility
    • [bugfix: G154] regex for external image source
    Source code(tar.gz)
    Source code(zip)
  • v1.7.15(Apr 30, 2020)

    ¤ PHP 7.4 curly brace substring compatibility ¤ add basic support for WebP

    • [bugfix: G18] fopen() fails when using remote images from SSL
    • [bugfix: G65] ImageMagick -flatten vs PNG transparency
    • [bugfix: G75] improved InitializeTempDirSetting
    • [bugfix: G76] fix memory limit detection
    • [bugfix: G78] AllowOutputEnlargement and Zoom-Crop
    • [bugfix: G90] missing $PHPTHUMB_CONFIG
    • [bugfix: G91] missing config_ prefix in allow_local_http_src
    • [bugfix: G93] ImageMagick unsharp amount/threshold
    • [bugfix: G94] cannot declare class phpthumb_functions
    • [bugfix: G96] language level migration fixes
    • [bugfix: G108] add 'line-height' for text in image
    • [bugfix: G113] fix PNGs losing transparency
    • [bugfix: G123] improved default thumbnail filename
    • [bugfix: G126] overlay on transparent image
    • [bugfix: G133] fix 'wmi' and 'wmt' filters
    • [bugfix: G134] fix fsockopen http status text
    • [bugfix: G140] parse_url return user/pass
    • [bugfix: G142] allow transparent background when using 'far'
    • [bugfix: G144] fix class_exists
    • [bugfix: G149] magic quotes deprecated in PHP 7.4.2
    • bugfix: ImageMagick v7+ parameter order (in, op, out)
    Source code(tar.gz)
    Source code(zip)
  • v1.7.14(Aug 10, 2016)

    v1.7.14-201608101311

    • improved PHP7 compatability
    • [bugfix: #1021] demo.gallery updates for phpThumbURL
    • [bugfix: G65] PNG transparency
    • [bugfix: G70] set a default timezone if one is not set
    • [bugfix: G69] overlay margins
    • [bugfix: G66] lowercase all PHP function names
    • [bugfix: G64] Can't put thumbnail into a frame
    • [bugfix: #1014] PDF thumbnail not rendered correctly
    • [bugfix: #1008] phpThumbURL accept array parameters
    • [bugfix: #988] mysqli support in demo
    • [bugfix: G41] fail when memory_limit = -1
    • [bugfix: G35] no temp directory set
    • [bugfix: G33] realpath not working on some systems
    • [bugfix: #991] ImprovedImageRotate not static
    • set Last-Modified header on all requests
    • [bugfix: G19] phpThumbURL() rawurlencode
    • [bugfix: G26] ImageInterlace in RenderOutput()
    • [bugfix: #775] file_exists_ignoreopenbasedir
    • escapeshellarg disabled workaround
    • [bugfix: #977] $PHPTHUMB_DEFAULTS not working
    • [bugfix: G24] enable ImagePNG quality
    • [bugfix: G25] escapeshellarg may exist but be disabled
    Source code(tar.gz)
    Source code(zip)
  • v1.7.13(Jun 26, 2014)

    v1.7.13-201406261000 - June 26, 2014

    • Bugfix: incorrect variable name in phpThumb.php could prevent all hash values from matching

    v1.7.12-201406260900 - June 26, 2014 ¤ high_security_mode enabled by default and strongly recommended ¤ debug mode must be disabled to allow thumbnail generation - thanks to Rafay Baloch (www.rafayhackingarticles.net) for recommending some security configuration changes

    • default config_cache_directory_depth is now 2 (was 4)
    • Bugfix: temp files used with ImageMagick might not get deleted from cache directory
    • Bugfix (G:17): 'far' parameter not working as intended
    • Bugfix (G:16): $PHPTHUMB_DEFAULTS configuration ignored
    • Bugfix (G:15): $PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE logic wrong
    • Bugfix (G:11): config_cache_maxsize does not count wasted space
    • Bugfix (G:10): error images ignored relevant config options
    • Bugfix (#962): support symlinked subfolders for image source
    • Bugfix (#934): source image region (sx/sy/sw/sh) did not work when using ImageMagick
    • Bugfix (#925): add configurable URL separator
    • Bugfix (#921): non-static phpUnsharpMask::applyUnsharpMask()
    • Bugfix (#920): $PHPTHUMB_DEFAULTS with array value gives array-to-string PHP error
    • Bugfix (#909): unnecessary calls of shell commands when cached
    • Bugfix (#618): cached files inside subdirs won't be deleted
    • Bugfix (#594): ImageMagick variants not detected (e.g. OpenMP)
    Source code(tar.gz)
    Source code(zip)
Owner
James Heinrich
James Heinrich
An easy-to-use PHP QrCode generator with first-party support for Laravel.

An easy-to-use PHP QrCode generator with first-party support for Laravel.

Simple Software LLC 2.2k Jan 5, 2023
Multiavatar is a multicultural avatar generator.

Multiavatar Multiavatar is a multicultural avatar generator. In total, it is possible to generate 12,230,590,464 cryptographically unique avatars. Ini

Multiavatar 609 Dec 29, 2022
QR Code Generator

QR Code By endroid If you like my work you can show appreciation by sponsoring via Github Sponsors or send me some ADA at DdzFFzCqrhszSwiFWMBQomfv6mkD

Jeroen van den Enden 3.9k Dec 30, 2022
PHP Exif Library - library for reading and writing Exif headers in JPEG and TIFF files using PHP.

PEL: PHP Exif Library README file for PEL: PHP Exif Library. A library with support for reading and writing Exif headers in JPEG and TIFF images using

null 264 Dec 4, 2022
PHP Image Manipulation

Intervention Image Intervention Image is a PHP image handling and manipulation library providing an easier and expressive way to create, edit, and com

null 13k Jan 3, 2023
PHP 5.3 Object Oriented image manipulation library

Imagine Tweet about it using the #php_imagine hashtag. Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries. Requ

Bulat Shakirzyanov 4.3k Jan 6, 2023
🌄 Perceptual image hashing for PHP

ImageHash A perceptual hash is a fingerprint of a multimedia file derived from various features from its content. Unlike cryptographic hash functions

Jens Segers 1.9k Dec 28, 2022
GifCreator is a PHP class that creates animated GIF from multiple images

================================ GifCreator ================================ GifCreator is a PHP class to create animated GIF from multiple images For

Clément Guillemain 320 Dec 15, 2022
GifFrameExtractor is a PHP class that separates all the frames (and their duration) of an animated GIF

================================ GifFrameExtractor ================================ GifFrameExtractor is a PHP class that separates all the frames (an

Clément Guillemain 173 Dec 12, 2022
Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

NO LONGER MAINTAINED!!! Image Cache v. 1.0.0 Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file,

Erik Nielsen 455 Dec 30, 2022
PHP Captcha library

Captcha Installation With composer : { ... "require": { "gregwar/captcha": "1.*" } } Usage You can create a captcha with the Captc

Grégoire Passault 1.6k Dec 25, 2022
A BPMN 2.0 workflow engine for PHP

Workflower A BPMN 2.0 workflow engine for PHP Workflower is a BPMN 2.0 workflow engine for PHP. Workflower runs business processes using the BPMN 2.0

PHP Mentors 640 Jan 7, 2023
A Sharex IMG uploader that runs with PHP | Use a hosting site if you're a beginner use 000webhost

Sharex-Img-Uploader A Sharex IMG uploader that runs with PHP | Use a hosting site if you're a beginner use 000webhost Setting up SXCU In YOUR_DOMAIN_U

Pix 10 Nov 26, 2022
A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API.

A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API. This enables you to build cool little tricks, like showing your latest followers or sponsors, latest content creted, a qrcode to something, a progress bar for some goal, and whathever you can think of.

Erika Heidi 172 Jan 5, 2023
php-gd based image templates

gdaisy A highly experimental image templating system based on PHP-GD to dynamically generate image banners and covers. Installation 1. Require erikahe

Erika Heidi 67 Nov 22, 2022
Instagram with ImageMagick & PHP

Instagraph - Instagram with ImageMagick & PHP In this repository, I’ll demonstrate you how to create vintage (just like Instagram does) photos effects

Dejan Marjanovic 326 Nov 3, 2022
Grabs the dominant color or a representative color palette from an image. Uses PHP and GD, Imagick or Gmagick.

Color Thief PHP A PHP class for grabbing the color palette from an image. Uses PHP and GD or Imagick libraries to make it happen. It's a PHP port of t

Kevin Subileau 610 Dec 28, 2022
Get started with the Microsoft Graph SDK for PHP

If you want to play around with the PHP library, you can get up and running quickly with the PHP Connect Sample. This sample will start you with a little Laravel project that helps you with registration, authentication, and making a simple call to the service.

Microsoft Graph 423 Dec 28, 2022