Index: t3lib/class.t3lib_stdgraphic.php =================================================================== --- t3lib/class.t3lib_stdgraphic.php (Revision 6802) +++ t3lib/class.t3lib_stdgraphic.php (Arbeitskopie) @@ -2660,10 +2660,10 @@ * @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,$frame = 0) { + function imageMagickExec($input,$output,$params,$frame === false) { if (!$this->NO_IMAGE_MAGICK) { - $frame = $frame ? '['.intval($frame).']' : ''; - $cmd = t3lib_div::imageMagickCommand('convert', $params.' '.$this->wrapFileName($input).$frame.' '.$this->wrapFileName($output)); + $frame = ((!$this->noFramePrepended && is_numeric($frame)) ? '[' . intval($frame) . ']' : ''); + $cmd = t3lib_div::imageMagickCommand('convert', $params . ' ' . $this->wrapFileName($input) . $frame . ' ' . $this->wrapFileName($output)); $this->IM_commands[] = array($output,$cmd); $ret = exec($cmd);