[Typo3-dev] thumbs in BE trying to find myfile.png[0]

Stephane stephane.schitter at free.fr
Wed Mar 31 16:15:23 CEST 2004


Hello list,

This is my very first post to the list, I am quite new to Typo3. I have
a linux server with typo3.6rc2 (upgraded successfully from rc1).

I have come across a problem I do not think I had in 3.5 (not sure about
3.6rc1) : the thumbnails for an extension I am build were not generated
in the BE - or at least not displayed. I had a look at the thumbs.php code,
here is what I have done:

I have replaced:

$cmd = ($TYPO3_CONF_VARS['GFX']['im_path_lzw'] ? $TYPO3_CONF_VARS['GFX']
['im_path_lzw'] : $TYPO3_CONF_VARS['GFX']['im_path']).
'convert -sample '.$this->size.' '.$colors.' '.$this->wrapFileName($this-
>input.'[0]').' '.$this->wrapFileName($this->output);

with

$cmd = ($TYPO3_CONF_VARS['GFX']['im_path_lzw'] ? $TYPO3_CONF_VARS['GFX']
['im_path_lzw'] : $TYPO3_CONF_VARS['GFX']['im_path']).
'convert -sample '.$this->size.' '.$colors.' '.$this->wrapFileName($this-
>input).' '.$this->wrapFileName($this->output);

The change being the removal of .'[0]' at the end of $this->input



This seems to have resolved my problem, as Typo was trying to find files
called myfile.png[0] which did not exist... they are called myfile.png

Is that a bug - was this discussed already ?

Basically I'd like to know if what I did was right - and if not what is the
proper solution?

Regards,
Stephane






More information about the TYPO3-dev mailing list