static public function getThumbFilename($filename, $mimeType, $size)
    {
        if (substr($mimeType, 0, 5) == 'image')
        {
            $pos = mb_strrpos($filename, '.');
            if ($pos === FALSE)
            {
                return $filename . '_' . $size['width'] . 'x' . $size['height'];
            }
            else
            {
                return mb_substr($filename, 0, $pos) . '_' . $size['width'] . 'x' . $size['height'] . mb_substr($filename, $pos);
            }
        }
        else if ($mimeType == 'application/pdf')
        {
            return $GLOBALS['kernel']->getContainer()->get('templating.helper.assets')->getUrl('bundles/fulguriolightcms/img/thumb_pdf.png');
        }
        else
        {
            return 'http://www.placehold.it/' . $size['width'] . 'x' . $size['height'] . '/EFEFEF/AAAAAA';
        }
    }
static public function getThumbFilename($filename, $mimeType, $size)
    {
        if (substr($mimeType, 0, 5) == 'image')
        {
            $pos = mb_strrpos($filename, '.');
            if ($pos === FALSE)
            {
                return $filename . '_' . $size['width'] . 'x' . $size['height'];
            }
            else
            {
                return mb_substr($filename, 0, $pos) . '_' . $size['width'] . 'x' . $size['height'] . mb_substr($filename, $pos);
            }
        }
        else if ($mimeType == 'application/pdf')
        {
            return $GLOBALS['kernel']->getContainer()->get('templating.helper.assets')->getUrl('bundles/fulguriolightcms/img/thumb_pdf.png');
        }
        else
        {
            return 'http://www.placehold.it/' . $size['width'] . 'x' . $size['height'] . '/EFEFEF/AAAAAA';
        }
    }
static public function getThumbFilename ( $ filename , $ mimeType , $ size ) { if ( substr ( $ mimeType , 0 , 5 ) == 'image' ) { $ pos = mb_strrpos ( $ filename , '.' ) ; if ( $ pos === FALSE ) { return $ filename . '_' . $ size [ 'width' ] . 'x' . $ size [ 'height' ] ; } else { return mb_substr ( $ filename , 0 , $ pos ) . '_' . $ size [ 'width' ] . 'x' . $ size [ 'height' ] . mb_substr ( $ filename , $ pos ) ; } } else if ( $ mimeType == 'application/pdf' ) { return $ GLOBALS [ 'kernel' ] -> getContainer ( ) -> get ( 'templating.helper.assets' ) -> getUrl ( 'bundles/fulguriolightcms/img/thumb_pdf.png' ) ; } else { return 'http://www.placehold.it/' . $ size [ 'width' ] . 'x' . $ size [ 'height' ] . '/EFEFEF/AAAAAA' ; } }
Get thumb filename for a specified size

@param string $filename
@param string $mimeType
@param array $size Contains width and height
@return string
Get thumb filename for a specified size