Index: t3lib/thumbs.php =================================================================== --- t3lib/thumbs.php (revision 6689) +++ t3lib/thumbs.php (working copy) @@ -236,7 +236,7 @@ } else { $colors = ($sizeMax>56)?'-colors 64':'-colors 16'; } - $parameters = '-sample '.$this->size.' '.$colors.' '.$this->wrapFileName($this->input.'[0]').' '.$this->wrapFileName($this->output); + $parameters = '-sample '.$this->size.' '.$colors.' '.$this->wrapFileName($this->input).'[0] '.$this->wrapFileName($this->output); $cmd = t3lib_div::imageMagickCommand('convert', $parameters); exec($cmd); if (!@file_exists($this->output)) { Index: t3lib/class.t3lib_stdgraphic.php =================================================================== --- t3lib/class.t3lib_stdgraphic.php (revision 6689) +++ t3lib/class.t3lib_stdgraphic.php (working copy) @@ -2201,7 +2201,7 @@ $GLOBALS['TEMP_IMAGES_ON_PAGE'][] = $output; if ($this->dontCheckForExistingTempFile || !$this->file_exists_typo3temp_file($output, $imagefile)) { - $this->imageMagickExec($imagefile.$frame, $output, $command); + $this->imageMagickExec($imagefile, $output, $command, $frame); } if (@file_exists($output)) { $info[3] = $output; @@ -2511,11 +2511,12 @@ * @param string The relative (to PATH_site) image filepath, input file (read from) * @param string The relative (to PATH_site) image filepath, output filename (written to) * @param string ImageMagick parameters + * @param string Refers to which frame-number to select in the image. '' or 0 will select the first frame, 1 will select the next and so on... * @return string The result of a call to PHP function "exec()" */ - function imageMagickExec($input,$output,$params) { + function imageMagickExec($input,$output,$params,$frame = '') { if (!$this->NO_IMAGE_MAGICK) { - $cmd = t3lib_div::imageMagickCommand('convert', $params.' '.$this->wrapFileName($input).' '.$this->wrapFileName($output)); + $cmd = t3lib_div::imageMagickCommand('convert', $params.' '.$this->wrapFileName($input).$frame.' '.$this->wrapFileName($output)); $this->IM_commands[] = array($output,$cmd); $ret = exec($cmd);