Index: t3lib/class.t3lib_stdgraphic.php =================================================================== --- t3lib/class.t3lib_stdgraphic.php (Revision 7539) +++ t3lib/class.t3lib_stdgraphic.php (Arbeitskopie) @@ -2298,9 +2298,18 @@ $h=$data['origH']; // if no convertion should be performed - $wh_noscale = (!$w && !$h) || ($data[0]==$info[0] && $data[1]==$info[1]); // this flag is true if the width / height does NOT dictate the image to be scaled!! (that is if no w/h is given or if the destination w/h matches the original image-dimensions.... + // this flag is true if the width / height does NOT dictate + // the image to be scaled!! (that is if no w/h is + // given or if the destination w/h matches the original image-dimensions.... + $noScale = (!$w && !$h) || ($data[0]==$info[0] && $data[1]==$info[1]) || $options['noScale']; - if ($wh_noscale && !$data['crs'] && !$params && !$frame && $newExt==$info[2] && !$mustCreate) { + if ($noScale && !$data['crs'] && !$params && !$frame && $newExt==$info[2] && !$mustCreate) { + // set the new width and height before returning, + // if the noScale option is set + if ($options['noScale']) { + $info[0] = $data[0]; + $info[1] = $data[1]; + } $info[3] = $imagefile; return $info; } Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (Revision 7539) +++ typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie) @@ -5344,6 +5344,7 @@ $fileArray['maxH']= intval($this->stdWrap($fileArray['maxH'],$fileArray['maxH.'])); $fileArray['minW']= intval($this->stdWrap($fileArray['minW'],$fileArray['minW.'])); $fileArray['minH']= intval($this->stdWrap($fileArray['minH'],$fileArray['minH.'])); + $fileArray['noScale'] = $this->stdWrap($fileArray['noScale'], $fileArray['noScale.']); $maskArray= $fileArray['m.']; $maskImages=array(); if (is_array($fileArray['m.'])) { // Must render mask images and include in hash-calculating - else we cannot be sure the filename is unique for the setup! @@ -5376,6 +5377,7 @@ if ($fileArray['maxH']) {$options['maxH']=$fileArray['maxH'];} if ($fileArray['minW']) {$options['minW']=$fileArray['minW'];} if ($fileArray['minH']) {$options['minH']=$fileArray['minH'];} + if ($fileArray['noScale']) {$options['noScale']=$fileArray['noScale'];} // checks to see if m (the mask array) is defined if (is_array($maskArray) && $GLOBALS['TYPO3_CONF_VARS']['GFX']['im']) {