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

Stephane stephane.schitter at free.fr
Wed Mar 31 17:03:51 CEST 2004


Hello again.

Ok after more research I found out that my IM v5 is not handling frames
in filenames:

I had a similar issue in the "view Item" window to see a slightly bigger
image (again no picture shown). But that one I could resolve by setting :
$TYPO3_CONF_VARS["GFX"]["im_noFramePrepended"] to 1 in the install tool.

Shouldn't we have the same variable control the frame addition in the
thumbs.php file as well ?

Regards,
Stephane


Selon Stephane <stephane.schitter at free.fr>:
> 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
>





More information about the TYPO3-dev mailing list