Lines Matching refs:phpthumb_functions
353 …ageData).' bytes; magic="'.substr($this->rawImageData, 0, 4).'" ('.phpthumb_functions::HexCharDisp…
558 if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '5.1.2', '>=')) {
706 …$downloadfilename = phpthumb_functions::SanitizeFilename(is_string($this->sia) ? $this->sia : ($th…
716 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($this->thumbnailFormat));
734 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($this->thumbnailFormat));
744 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($this->thumbnailFormat));
760 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($this->thumbnailFormat));
782 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($this->thumbnailFormat));
825 …$AllFilesInCacheDirectory = phpthumb_functions::GetAllFilesInSubfolders($this->config_cache_direct…
1078 …if (phpthumb_functions::CaseInsensitiveInArray($this->config_output_format, $AvailableImageOutputF…
1085 …if ($this->f && phpthumb_functions::CaseInsensitiveInArray($this->f, $AvailableImageOutputFormats)…
1320 if (phpthumb_functions::is_windows()) {
1388 if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray($filename)) {
1420 …if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']…
1474 …$ls_filename = trim(phpthumb_functions::SafeExec('dir /b '.phpthumb_functions::escapeshellarg_repl…
1477 …$ls_filename = trim(phpthumb_functions::SafeExec('ls '.phpthumb_functions::escapeshellarg_replacem…
1495 $WhichConvert = trim(phpthumb_functions::SafeExec('which convert'));
1541 …$commandline .= ' && cd '.phpthumb_functions::escapeshellarg_replacement(str_replace('/', DIRECTOR…
1542 …$commandline .= ' && '.phpthumb_functions::escapeshellarg_replacement(basename($this->config_image…
1544 $commandline = phpthumb_functions::escapeshellarg_replacement($this->config_imagemagick_path);
1600 $versionstring[1] = trim(phpthumb_functions::SafeExec($commandline));
1626 $IMhelp_lines = explode("\n", phpthumb_functions::SafeExec($commandline));
1659 $IMformatsList = phpthumb_functions::SafeExec($commandline);
1694 if (phpthumb_functions::gd_version()) {
1722 if (phpthumb_functions::gd_version()) {
1790 …$commandline .= ' '.phpthumb_functions::escapeshellarg_replacement(preg_replace('#[/\\\\]#', DIREC…
1801 …ne_test = $this->ImageMagickCommandlineBase().' logo: -resize 1x '.phpthumb_functions::escapeshell…
1802 $IMresult_test = phpthumb_functions::SafeExec($commandline_test);
1829 $commandline .= ' -density '.phpthumb_functions::escapeshellarg_replacement($this->dpi);
1841 …$commandline .= ' -background '.phpthumb_functions::escapeshellarg_replacement('#'.($this->bg ? $t…
1869 …$side = phpthumb_functions::nonempty_min($this->source_width, $this->source_height, max($wAll, $h…
1870 …$sideX = phpthumb_functions::nonempty_min($this->source_width, $wAll, round(…
1871 …$sideY = phpthumb_functions::nonempty_min( $this->source_height, $hAll, round(…
1877 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement(($IMuse…
1913 … $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($wAll.'x'.$hAll.'+0+0');
1915 … $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($side.'x'.$side.'+0+0');
1934 $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($crop_param);
1953 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($this->…
1960 list($nw, $nh) = phpthumb_functions::TranslateWHbyAngle($this->w, $this->h, $this->ra);
1963 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($nw.'x'…
1967 …ameter.' '.phpthumb_functions::escapeshellarg_replacement(phpthumb_functions::nonempty_min($this->…
1970 … $commandline .= ' -background ' . phpthumb_functions::escapeshellarg_replacement('#' . $this->bg);
1974 … $commandline .= ' -extent '.phpthumb_functions::escapeshellarg_replacement($this->w.'x'.$this->h);
1978 …$this->w = (($this->aoe && $this->w) ? $this->w : ($this->w ? phpthumb_functions::nonempty_min($th…
1979 …$this->h = (($this->aoe && $this->h) ? $this->h : ($this->h ? phpthumb_functions::nonempty_min($th…
1988 list($nw, $nh) = phpthumb_functions::TranslateWHbyAngle($this->w, $this->h, $this->ra);
1991 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($nw.'x'…
2005 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement(($this-…
2007 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($this->…
2016 ….implode('|', $this->AlphaCapableFormats).')#i', $outputFormat) || phpthumb_functions::version_com…
2018 $commandline .= ' -rotate '.phpthumb_functions::escapeshellarg_replacement($this->ra);
2024 …$commandline .= ' -background '.phpthumb_functions::escapeshellarg_replacement('#'.($this->bg ? $t…
2042 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement((100 + (int) $paramet…
2073 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 - (int) $…
2085 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 + (int) $…
2102 …$commandline .= ' -fill '.phpthumb_functions::escapeshellarg_replacement('#'.preg_replace('#[^0-9A…
2103 …$commandline .= ' -colorize '.phpthumb_functions::escapeshellarg_replacement(min(max((int) $amount…
2113 …$commandline .= ' -sepia-tone '.phpthumb_functions::escapeshellarg_replacement(min(max((int) $amou…
2124 $commandline .= ' -gamma '.phpthumb_functions::escapeshellarg_replacement($amount);
2140 …$commandline .= ' -threshold '.phpthumb_functions::escapeshellarg_replacement(round(min(max((int) …
2152 …$commandline .= ' -colors '.phpthumb_functions::escapeshellarg_replacement(max($colors, 8)); // Im…
2173 …$commandline .= ' -edge '.phpthumb_functions::escapeshellarg_replacement(!empty($parameter) ? (int…
2181 … $commandline .= ' -emboss '.phpthumb_functions::escapeshellarg_replacement((int) $parameter);
2218 … $commandline .= ' -channel '.phpthumb_functions::escapeshellarg_replacement(strtoupper($band));
2232 … $commandline .= ' -channel '.phpthumb_functions::escapeshellarg_replacement(strtoupper($band));
2271 $commandline .= ' -blur '.phpthumb_functions::escapeshellarg_replacement($radius);
2281 $commandline .= ' -gaussian-blur '.phpthumb_functions::escapeshellarg_replacement($radius);
2284 $commandline .= ' -gaussian '.phpthumb_functions::escapeshellarg_replacement($radius);
2295 …$commandline .= ' -unsharp '.phpthumb_functions::escapeshellarg_replacement(number_format(($radius…
2308 if (!phpthumb_functions::IsHexColor($color)) {
2309 …$color = ((!empty($this->bc) && phpthumb_functions::IsHexColor($this->bc)) ? $this->bc : '000000');
2311 $commandline .= ' -border '.phpthumb_functions::escapeshellarg_replacement((int) $width);
2312 … $commandline .= ' -bordercolor '.phpthumb_functions::escapeshellarg_replacement('#'.$color);
2315 …replace(' -crop "'.$matches[1].'x'.$matches[2].'+0+0" ', ' -crop '.phpthumb_functions::escapeshell…
2317 …' "'.$matches[1].'x'.$matches[2].'" ', ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshell…
2391 …$commandline .= ' -quality '.phpthumb_functions::escapeshellarg_replacement($this->thumbnailQualit…
2398 …$commandline .= ' '.$outputFormat.':'.phpthumb_functions::escapeshellarg_replacement($IMtempfilena…
2403 $IMresult = phpthumb_functions::SafeExec($commandline);
2473 if (!phpthumb_functions::IsHexColor($this->config_background_hexcolor)) {
2485 if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.2.0', '>=')) {
2623 $parsed_url = phpthumb_functions::ParseURLbetter(@$_SERVER['HTTP_REFERER']);
2634 $parsed_url = phpthumb_functions::ParseURLbetter($this->src);
2650 if (!phpthumb_functions::IsHexColor($this->config_error_bgcolor)) {
2653 if (!phpthumb_functions::IsHexColor($this->config_error_textcolor)) {
2681 …$nohotlink_text_color = phpthumb_functions::ImageHexColorAllocate($this->gdimg_output, $this->conf…
2721 if (phpthumb_functions::gd_version() < 2.0) {
2722 …$this->DebugMessage('AlphaChannelFlatten() failed because GD version is "'.phpthumb_functions::gd_…
2736 $PixelColor = phpthumb_functions::GetPixelColor($this->gdimg_output, $x, $y);
2754 $AlphaChannelPixel = phpthumb_functions::GetPixelColor($img_alpha_mixdown_dither, $x, $y);
2779 …if ($gdimg_flatten_temp = phpthumb_functions::ImageCreateFunction($this->thumbnail_width, $this->t…
2782 if (!phpthumb_functions::IsHexColor($this->config_background_hexcolor)) {
2785 …$background_color = phpthumb_functions::ImageHexColorAllocate($this->gdimg_output, $this->config_b…
2837 if (phpthumb_functions::gd_version() < 2) {
2838 …$this->DebugMessage('Skipping Colorize() because gd_version is "'.phpthumb_functions::gd_version()…
2846 if (phpthumb_functions::gd_version() < 2) {
2847 …$this->DebugMessage('Skipping Sepia() because gd_version is "'.phpthumb_functions::gd_version().'"…
2867 if (phpthumb_functions::gd_version() < 2) {
2868 …$this->DebugMessage('Skipping ReduceColorDepth() because gd_version is "'.phpthumb_functions::gd_v…
2908 if (phpthumb_functions::gd_version() < 2) {
2909 …$this->DebugMessage('Skipping HistogramOverlay() because gd_version is "'.phpthumb_functions::gd_v…
2930 if (phpthumb_functions::gd_version() < 2) {
2931 …$this->DebugMessage('Skipping DropShadow() because gd_version is "'.phpthumb_functions::gd_version…
2940 if (phpthumb_functions::gd_version() < 2) {
2941 …$this->DebugMessage('Skipping Mask() because gd_version is "'.phpthumb_functions::gd_version().'"'…
2954 …if ($invert && phpthumb_functions::version_compare_replacement(PHP_VERSION, '5.0.0', '>=') && phpt…
2969 if (phpthumb_functions::gd_version() < 2) {
2970 …$this->DebugMessage('Skipping Ellipse() because gd_version is "'.phpthumb_functions::gd_version().…
2978 if (phpthumb_functions::gd_version() < 2) {
2979 …ugMessage('Skipping RoundedImageCorners() because gd_version is "'.phpthumb_functions::gd_version(…
3032 …if ($img_watermark_resized = phpthumb_functions::ImageCreateFunction(imagesx($this->gdimg_output),…
3036 … if ($img_source_resized = phpthumb_functions::ImageCreateFunction($resized_x, $resized_y)) {
3052 … if ($img_watermark_resized = phpthumb_functions::ImageCreateFunction($resized_x, $resized_y)) {
3100 …$scale = phpthumb_functions::ScaleToFitInBox(imagesx($img_watermark), imagesy($img_watermark), $wa…
3103 …if ($img_watermark2 = phpthumb_functions::ImageCreateFunction($scale * imagesx($img_watermark), $s…
3155 if (phpthumb_functions::gd_version() >= 2) {
3158 …$this->DebugMessage('Skipping Blur() because gd_version is "'.phpthumb_functions::gd_version().'"'…
3183 if (phpthumb_functions::gd_version() >= 2.0) {
3197 …$this->DebugMessage('Skipping unsharp mask because gd_version is "'.phpthumb_functions::gd_version…
3208 …$scale_x = phpthumb_functions::ScaleToFitInBox(imagesx($this->gdimg_output), imagesx($this->gdimg_…
3209 …$scale_y = phpthumb_functions::ScaleToFitInBox(imagesy($this->gdimg_output), imagesy($this->gdimg_…
3211 …$scale_x = phpthumb_functions::ScaleToFitInBox(imagesx($this->gdimg_output), imagesy($this->gdimg_…
3216 …if ($img_temp = phpthumb_functions::ImageCreateFunction(imagesx($this->gdimg_output), imagesy($thi…
3218 …if ($this->gdimg_output = phpthumb_functions::ImageCreateFunction($scale_x * imagesx($img_temp), $…
3239 if (!phpthumb_functions::IsHexColor($hexcolor)) {
3262 if (phpthumb_functions::gd_version() < 2) {
3263 …$this->DebugMessage('Skipping MaxFileSize() because gd_version is "'.phpthumb_functions::gd_versio…
3401 …$maxwidth = phpthumb_functions::nonempty_min($this->w, $this->thumbnailCropW, $this->config_outpu…
3402 …$maxheight = phpthumb_functions::nonempty_min($this->h, $this->thumbnailCropH, $this->config_outpu…
3427 …$this->gdimg_output = phpthumb_functions::ImageCreateFunction($this->thumbnail_width, $this->thumb…
3431 if ($this->is_alpha && phpthumb_functions::gd_version() >= 2) {
3434 …$output_full_alpha = phpthumb_functions::ImageColorAllocateAlphaSafe($this->gdimg_output, 255, 255…
3443 if (!phpthumb_functions::IsHexColor($this->config_background_hexcolor)) {
3446 …$background_color = phpthumb_functions::ImageHexColorAllocate($this->gdimg_output, $this->config_b…
3460 $this->w = phpthumb_functions::OneOfThese($this->wp, $this->w, $this->ws, $this->wl);
3461 $this->h = phpthumb_functions::OneOfThese($this->hp, $this->h, $this->hs, $this->hl);
3464 $this->w = phpthumb_functions::OneOfThese($this->wl, $this->w, $this->ws, $this->wp);
3465 $this->h = phpthumb_functions::OneOfThese($this->hl, $this->h, $this->hs, $this->hp);
3468 $this->w = phpthumb_functions::OneOfThese($this->ws, $this->w, $this->wl, $this->wp);
3469 $this->h = phpthumb_functions::OneOfThese($this->hs, $this->h, $this->hl, $this->hp);
3537 …if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.2.0', '>=') && function_exists…
3554 if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.0', '>=')) {
3690 $parsed_url1 = @phpthumb_functions::ParseURLbetter(@$_SERVER['HTTP_REFERER']);
3691 $parsed_url2 = @phpthumb_functions::ParseURLbetter('http://'.@$_SERVER['HTTP_HOST']);
3732 $this->cache_filename .= '_dat'. (int) phpthumb_functions::filedate_remote($this->src);
3899 …with unknown image type "'.substr($this->rawImageData, 0, 4).'" ('.phpthumb_functions::HexCharDisp…
3905 if ($this->md5s && ($this->md5s != phpthumb_functions::md5_file_safe($this->sourceFilename))) {
3906 …md5s != md5(sourceFilename)'."\n".'"'.$this->md5s.'" != '."\n".'"'.phpthumb_functions::md5_file_sa…
4054 …$this->gdimg_source = $phpthumb_bmp->phpthumb_bmp2gd($this->rawImageData, phpthumb_functions::gd_v…
4089 if (!$this->ImageMagickVersion() && !phpthumb_functions::gd_version()) {
4102 …rImage('Unknown image type identified by "'.$HeaderFourBytes.'" ('.phpthumb_functions::HexCharDisp…
4276 …' ', 23 - strlen($functionname)).' = '.$this->phpThumbDebugVarDump(phpthumb_functions::builtin_fun…
4286 $exif_info = phpthumb_functions::exif_info();
4292 …if ($ApacheLookupURIarray = phpthumb_functions::ApacheLookupURIarray(dirname(@$_SERVER['PHP_SELF']…
4365 …if (!$this->thumbnailFormat || !$this->config_disable_debug || (phpthumb_functions::gd_version() <…
4387 …if (phpthumb_functions::version_compare_replacement(PHP_VERSION, '4.3.0', '>=') && headers_sent($h…
4397 …$background_color = phpthumb_functions::ImageHexColorAllocate($gdimg_error, $this->config_error_bg…
4398 …$text_color = phpthumb_functions::ImageHexColorAllocate($gdimg_error, $this->config_error_te…
4434 if (!phpthumb_functions::gd_version()) {
4446 …age('ImageCreateFromStringReplacement() failed: gd_version says "'.phpthumb_functions::gd_version(…
4450 if (phpthumb_functions::gd_is_bundled()) {
4470 …ateFromStringReplacement() failed: unknown fileformat signature "'.phpthumb_functions::HexCharDisp…
4560 if (phpthumb_functions::gd_version() >= 2.0) {
4562 …return phpthumb_functions::ImageCopyResampleBicubic($dst_im, $src_im, $dstX, $dstY, $srcX, $srcY, …