src/ShopBundle/objects/db/TShopArticlePreviewImage.class.php
public function GetImageThumbnailObject($aEffects = array())
    {
        $oImageSize = &$this->GetImageSizeObject();
        $oImage = &$this->GetImageObject();
        $oThumb = null;
        TdbCmsConfigImagemagick::SetEnableEffects(true);
        $bEnableEffects = TdbCmsConfigImagemagick::GetEnableEffects();

        if ($oImageSize->fieldForceSize) {
            $oThumb = $oImage->GetForcedSizeThumbnail($oImageSize->fieldWidth, $oImageSize->fieldHeight);
        } else {
            $oThumb = $oImage->GetThumbnail($oImageSize->fieldWidth, $oImageSize->fieldHeight, true, $aEffects);
        }
        TdbCmsConfigImagemagick::SetEnableEffects($bEnableEffects);

        return $oThumb;
    }
public function GetImageThumbnailObject($aEffects = array())
    {
        $oImageSize = &$this->GetImageSizeObject();
        $oImage = &$this->GetImageObject();
        $oThumb = null;
        TdbCmsConfigImagemagick::SetEnableEffects(true);
        $bEnableEffects = TdbCmsConfigImagemagick::GetEnableEffects();

        if ($oImageSize->fieldForceSize) {
            $oThumb = $oImage->GetForcedSizeThumbnail($oImageSize->fieldWidth, $oImageSize->fieldHeight);
        } else {
            $oThumb = $oImage->GetThumbnail($oImageSize->fieldWidth, $oImageSize->fieldHeight, true, $aEffects);
        }
        TdbCmsConfigImagemagick::SetEnableEffects($bEnableEffects);

        return $oThumb;
    }
public function GetImageThumbnailObject ( $ aEffects = array ( ) ) { $ oImageSize = & $ this -> GetImageSizeObject ( ) ; $ oImage = & $ this -> GetImageObject ( ) ; $ oThumb = null ; TdbCmsConfigImagemagick :: SetEnableEffects ( true ) ; $ bEnableEffects = TdbCmsConfigImagemagick :: GetEnableEffects ( ) ; if ( $ oImageSize -> fieldForceSize ) { $ oThumb = $ oImage -> GetForcedSizeThumbnail ( $ oImageSize -> fieldWidth , $ oImageSize -> fieldHeight ) ; } else { $ oThumb = $ oImage -> GetThumbnail ( $ oImageSize -> fieldWidth , $ oImageSize -> fieldHeight , true , $ aEffects ) ; } TdbCmsConfigImagemagick :: SetEnableEffects ( $ bEnableEffects ) ; return $ oThumb ; }
return thumbnail for current size.

@return TCMSImage
return thumbnail for current size .