Lines Matching refs:commandline

1506 		static $commandline = null;
1507 if (null === $commandline) {
1509 $commandline = '';
1510 return $commandline;
1514 if (($commandline = @file_get_contents($IMcommandlineBaseCacheFilename)) !== false) {
1515 return $commandline;
1518 $commandline = (null !== $this->config_imagemagick_path ? $this->config_imagemagick_path : '');
1539 $commandline = '';
1540 $commandline .= substr($this->config_imagemagick_path, 0, 2);
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);
1558 $commandline = 'convert';
1563 $commandline = $this->config_imagemagick_path;
1568 $commandline = '';
1574 @file_put_contents($IMcommandlineBaseCacheFilename, $commandline);
1577 return $commandline;
1595 $commandline = $this->ImageMagickCommandlineBase();
1596 $commandline = (null !== $commandline ? $commandline : '');
1597 if ($commandline) {
1598 $commandline .= ' --version';
1599 $this->DebugMessage('ImageMagick version checked with "'.$commandline.'"', __FILE__, __LINE__);
1600 $versionstring[1] = trim(phpthumb_functions::SafeExec($commandline));
1623 $commandline = $this->ImageMagickCommandlineBase();
1624 if (null !== $commandline) {
1625 $commandline .= ' -help';
1626 $IMhelp_lines = explode("\n", phpthumb_functions::SafeExec($commandline));
1655 $commandline = $this->ImageMagickCommandlineBase();
1656 if (!is_null($commandline)) {
1657 …$commandline = dirname($commandline).DIRECTORY_SEPARATOR.str_replace('convert', 'identify', basena…
1658 $commandline .= ' -list format';
1659 $IMformatsList = phpthumb_functions::SafeExec($commandline);
1788 $commandline = $this->ImageMagickCommandlineBase();
1789 if ($commandline) {
1790 …$commandline .= ' '.phpthumb_functions::escapeshellarg_replacement(preg_replace('#[/\\\\]#', DIREC…
1828 $commandline .= ' -flatten';
1829 $commandline .= ' -density '.phpthumb_functions::escapeshellarg_replacement($this->dpi);
1841 …$commandline .= ' -background '.phpthumb_functions::escapeshellarg_replacement('#'.($this->bg ? $t…
1842 if (!stristr($commandline, ' -flatten')) {
1843 $commandline .= ' -flatten';
1847 $commandline .= ' -background none';
1851 $commandline .= ' -coalesce'; // may be needed for animated GIFs
1875 $commandline .= ' -'.$IMresizeParameter.' "'.$wAll.'x'.$hAll.'^"';
1877 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement(($IMuse…
1882 $commandline .= ' -gravity north';
1885 $commandline .= ' -gravity south';
1888 $commandline .= ' -gravity west';
1891 $commandline .= ' -gravity east';
1894 $commandline .= ' -gravity northwest';
1897 $commandline .= ' -gravity northeast';
1900 $commandline .= ' -gravity southwest';
1903 $commandline .= ' -gravity southeast';
1908 $commandline .= ' -gravity center';
1913 … $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($wAll.'x'.$hAll.'+0+0');
1915 … $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($side.'x'.$side.'+0+0');
1918 $commandline .= ' +repage';
1934 $commandline .= ' -crop '.phpthumb_functions::escapeshellarg_replacement($crop_param);
1942 $commandline .= ' -repage';
1953 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($this->…
1963 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement($nw.'x'…
1967 …$commandline .= ' -'.$IMresizeParameter.' '.phpthumb_functions::escapeshellarg_replacement(phpthum…
1968 $commandline .= ' -gravity center';
1970 … $commandline .= ' -background ' . phpthumb_functions::escapeshellarg_replacement('#' . $this->bg);
1972 $commandline .= ' -background none';
1974 … $commandline .= ' -extent '.phpthumb_functions::escapeshellarg_replacement($this->w.'x'.$this->h);
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->…
2018 $commandline .= ' -rotate '.phpthumb_functions::escapeshellarg_replacement($this->ra);
2022 $commandline .= ' -background rgba(255,255,255,0)';
2024 …$commandline .= ' -background '.phpthumb_functions::escapeshellarg_replacement('#'.($this->bg ? $t…
2042 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement((100 + (int) $paramet…
2053 $commandline .= ' -contrast'; // increase contrast by 10%
2058 $commandline .= ' +contrast'; // decrease contrast by 10%
2070 $commandline .= ' -colorspace GRAY';
2071 $commandline .= ' -modulate 100,0,100';
2073 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 - (int) $…
2082 $commandline .= ' -colorspace GRAY';
2083 $commandline .= ' -modulate 100,0,100';
2085 …$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 + (int) $…
2093 $commandline .= ' -colorspace GRAY';
2094 $commandline .= ' -modulate 100,0,100';
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);
2132 $commandline .= ' -negate';
2140 …$commandline .= ' -threshold '.phpthumb_functions::escapeshellarg_replacement(round(min(max((int) …
2141 $commandline .= ' -dither';
2142 $commandline .= ' -monochrome';
2152 …$commandline .= ' -colors '.phpthumb_functions::escapeshellarg_replacement(max($colors, 8)); // Im…
2153 $commandline .= ($dither ? ' -dither' : ' +dither');
2161 $commandline .= ' -flop';
2164 $commandline .= ' -flip';
2173 …$commandline .= ' -edge '.phpthumb_functions::escapeshellarg_replacement(!empty($parameter) ? (int…
2181 … $commandline .= ' -emboss '.phpthumb_functions::escapeshellarg_replacement((int) $parameter);
2183 … $commandline .= ' -negate'; // ImageMagick negates the image for some reason with '-emboss 1';
2218 … $commandline .= ' -channel '.phpthumb_functions::escapeshellarg_replacement(strtoupper($band));
2222 $commandline .= ' -contrast-stretch \''.$threshold.'%\'';
2224 $commandline .= ' +channel';
2232 … $commandline .= ' -channel '.phpthumb_functions::escapeshellarg_replacement(strtoupper($band));
2234 $commandline .= ' -normalize';
2236 $commandline .= ' +channel';
2259 $commandline .= ' -channel R -contrast-stretch \''.$threshold.'%\'';
2260 $commandline .= ' -channel G -contrast-stretch \''.$threshold.'%\'';
2261 $commandline .= ' -channel B -contrast-stretch \''.$threshold.'%\'';
2262 $commandline .= ' +channel';
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…
2311 $commandline .= ' -border '.phpthumb_functions::escapeshellarg_replacement((int) $width);
2312 … $commandline .= ' -bordercolor '.phpthumb_functions::escapeshellarg_replacement('#'.$color);
2314 if (preg_match('# \\-crop "([\d]+)x([\d]+)\\+0\\+0" #', $commandline, $matches)) {
2315commandline = str_replace(' -crop "'.$matches[1].'x'.$matches[2].'+0+0" ', ' -crop '.phpthumb_func…
2316 …} elseif (preg_match('# \\-'.$IMresizeParameter.' "([0-9]+)x([0-9]+)" #', $commandline, $matches))…
2317commandline = str_replace(' -'.$IMresizeParameter.' "'.$matches[1].'x'.$matches[2].'" ', ' -'.$IMr…
2391 …$commandline .= ' -quality '.phpthumb_functions::escapeshellarg_replacement($this->thumbnailQualit…
2394 …$commandline .= ' -interlace line '; // Use Line or Plane to create an interlaced PNG or GIF or pr…
2398 …$commandline .= ' '.$outputFormat.':'.phpthumb_functions::escapeshellarg_replacement($IMtempfilena…
2400 $commandline .= ' 2>&1';
2402 $this->DebugMessage('ImageMagick called as ('.$commandline.')', __FILE__, __LINE__);
2403 $IMresult = phpthumb_functions::SafeExec($commandline);