<-- bad . . . . . good --> | |||||||
---|---|---|---|---|---|---|---|
Setting | Value | Comments | |
---|---|---|---|
Latest phpThumb version: | Download the latest version from http://phpthumb.sourceforge.net | ||
This phpThumb version: | 1.7.14-201503301816 | Latest version unknown. Download the latest version from http://phpthumb.sourceforge.net. | |
phpThumb.config.php: | "phpThumb.config.php" exists and "phpThumb.config.php.default" does not | "phpThumb.config.php.default" that comes in the distribution must be renamed to "phpThumb.config.php" before phpThumb.php can be used. Avoid having both files present to minimize confusion. | |
cache directory: | exists readable writable | Original: "/home/globalart/public_html/domains/sgtest/gba-includes/phpThumb/cache/" Resolved: "/home/globalart/public_html/domains/sgtest/gba-includes/phpThumb/cache" Must exist and be both readable and writable by PHP. | |
cache write test: | / home / globalart / public_html / domains / sgtest / gba-includes / phpThumb / cache / 6 / 67 / phpThumb_cache_sg.test.globalart.world__raw67c44e91c46b79493d95da579a7fef28_par52b4fbd9e2256843fcdbe9d1f35f2875.jpeg directory does NOT exist (before EnsureDirectoryExists()) directory exists (after EnsureDirectoryExists()) write test succeeded chmod($phpThumb->cache_filename, 0644) from "0644" resulted in permissions "0644" delete test succeeded | Created and deletes a sample cache file to see if you actually have create/delete permission. If Safe Mode is enabled this is often broken. | |
temp directory: | /home/globalart/public_html/domains/sgtest/gba-includes/phpThumb/cache/pThumbO9wiet exists readable writable | Original: "/home/globalart/public_html/domains/sgtest/gba-includes/phpThumb/cache" Resolved: "/home/globalart/public_html/domains/sgtest/gba-includes/phpThumb/cache" Must exist and be both readable and writable by PHP. | |
PHP version: | 7.2.34 | PHP5 is ideal (support for numerous built-in filters which are much faster than my code). PHP v4.4.2 contains a bug in fopen over HTTP (phpThumb has a workaround) PHP v4.3.2+ supports ImageSaveAlpha which is required for proper PNG/ICO output. ImageRotate requires PHP v4.3.0+ (but buggy before v4.3.3). EXIF thumbnail extraction requires PHP v4.2.0+. Most things will work back to PHP v4.1.0, and mostly (perhaps buggy) back to v4.0.6, but no guarantees for any version older than that. | |
GD version: | bundled (2.1.0 compatible) | GD2-bundled version is ideal. GD2 (non-bundled) is second choice, but there are a number of bugs in the non-bundled version. ImageRotate is only available in the bundled version of GD2. GD1 will also (mostly) work, at much-reduced image quality and several features disabled. phpThumb can perform most operations with ImageMagick only, even if GD is not available. | |
ImageMagick version: | [0] [0] [0] [0] [0] n/a | ImageMagick is faster than GD, can process larger images without PHP memory_limit issues, can resize animated GIFs. phpThumb can perform most operations with ImageMagick only, even if GD is not available. | |
ImageMagick features: | ImageMagick not found | All of these parameters may be called by phpThumb, depending on parameters used. Green means the feature is available; red means a critical feature is missing; orange means an optional filter/feature is missing. | |
ImageMagick formats: | ImageMagick not found | ImageMagick can only read/write formats as listed here. You may need to recompile ImageMagick if you need to use a format not listed | |
GD features: | JPEG Support PNG Support GIF Read Support GIF Create Support FreeType Support | PNG support is required for watermarks, overlays, calls to ImageMagick and other internal operations. JPG support is obviously quite useful, but ImageMagick can substitute GIF read support can be bypassed with ImageMagick and/or internal GIF routines. GIF create support can be bypassed with ImageMagick (if no filters are applied) FreeType support is needed for TTF overlays. | |
GD extension "EXIF" | TRUE | EXIF extension required for auto-rotate images. Also required to extract EXIF thumbnail to use as source if source image is too large for PHP memory_limit and ImageMagick is unavailable. | |
php_sapi_name() | cgi-fcgi | SAPI mode preferred to CGI mode. FCGI mode has unconfirmed strange behavior (notably more than one space in "wmt" filter text causes errors). If not working in "apache" (SAPI) mode, apache_lookup_uri() will not work. | |
Server Software | Apache | Apache v1.x has the fewest compatability problems. IIS has numerous annoyances. Apache v2.x is broken when lookup up /~user/filename.jpg style relative filenames using apache_lookup_uri(). | |
curl_version: | 7.61.1 | Best if available. HTTP source images will be unavailable if CURL unavailable and allow_url_fopen is also disabled. | |
function_exists: | Value | Comments | |
ImageRotate | TRUE | required for "ra" and "ar" filters. | |
exif_read_data | TRUE | required for "ar" filter. | |
exif_thumbnail | TRUE | required to extract EXIF thumbnails. | |
memory_get_usage | TRUE | mostly used for troubleshooting. | |
version_compare | TRUE | available in PHP v4.1.0+, internal workaround available | |
file_get_contents | TRUE | available in PHP v4.3.0+, internal workaround available | |
file_put_contents | TRUE | available in PHP v5.0.0+, internal workaround available | |
is_executable | TRUE | available in PHP3, except only PHP5 for Windows. poor internal workaround available | |
gd_info | TRUE | available in PHP v4.3.0+ (with bundled GD2), internal workaround available | |
ImageTypes | TRUE | required for GD image output. | |
ImageCreateFromJPEG | TRUE | required for JPEG source images using GD. | |
ImageCreateFromGIF | TRUE | useful for GIF source images using GD. | |
ImageCreateFromPNG | TRUE | required for PNG source images using GD and other source image formats using ImageMagick. | |
ImageCreateFromWBMP | TRUE | required for WBMP source images using GD. | |
ImageCreateFromString | TRUE | required for HTTP and non-file image sources. | |
ImageCreateTrueColor | TRUE | required for all non-ImageMagick filters. | |
ImageIsTrueColor | TRUE | available in PHP v4.3.2+ with GD v2.0.1+ | |
ImageFilter | TRUE | PHP5 only. Required for some filters (but most can use ImageMagick instead) | |
Setting | Master Value | Local Value | Comments |
magic_quotes_runtime: | FALSE | FALSE | This setting is evil. Turn it off. |
magic_quotes_gpc: | FALSE | FALSE | This setting is bad. Turn it off, if possible. phpThumb will attempt to work around it if it is enabled. |
safe_mode: | FALSE | FALSE | Best if off. Calls to ImageMagick will be disabled if safe_mode is set to prevent writing temp files (limiting max image resolution, no animated GIF resize). Raw image data sources (e.g. from MySQL database) may not work. Temp files may be disabled. Features will be limited. If disabled in Master but enabled in Local, edit httpd.conf and set (php_admin_value safe_mode "Off") between <VirtualHost> tags |
allow_url_fopen: | TRUE | TRUE | Best if on. HTTP source images will be unavailable if disabled and CURL is unavailable. |
disable_functions: | Best if nothing disabled. Calls to ImageMagick will be prevented if exec+system+shell_exec+passthru are disabled. | ||
memory_limit: | 2048M | 2048M | The higher the better. Divide by 5 to get maximum megapixels of source image that can be thumbnailed (without ImageMagick). Your setting (2048M) allows images up to approximately 409.6 megapixels |