[TYPO3-english] BackendUtility::getThumbNail

Markus Klein klein.t3 at reelworx.at
Thu Jul 31 10:54:52 CEST 2014


Hi Christian,

there are some known issues with this function, unfortunately no fix yet.

https://forge.typo3.org/issues/59215
https://forge.typo3.org/issues/50301


Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Christian Tauscher
> Sent: Thursday, July 31, 2014 10:43 AM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] BackendUtility::getThumbNail
> 
> Good morning.
> 
> I have writte a backendmodule (up since years).
> 
> Now I switch over to 6.1/6.2.
> 
> In mod1 the DB-Content along with the image is shown.
> The old (4.x) getThumbNail-function call was broken, so I googeled this
> call:
> 
> 
> return \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbNail(
> 	$this->doc->backPath . 'thumbs.php',
> 	$uploadfolder.$theFile,
> 	'hspace="5" vspace="5" border="1"',
> 	'100x50'
> );
> 
> 
> all the path is correct so far.
> 
> $this->doc->backPath.'thumbs.php' ist the relative path from EXT:mod1
> (shuould be OK)
> 
> $uploadfolder.$theFile ist the absolute path to te image (Proofed!)
> 
> 
> But the image is not rendered: questionmark on grey back with "input file is
> not found..." rendered on it
> 
> installtool is checked an OK. Image Redering Proofed OK.
> 
> 
> Exaple output:
> <img vspace="5" hspace="5" border="1" alt="" title="TheTitle"
> src="../../../../typo3/thumbs.php?&file=%2Fvar%2Fwww%2Fhtdocs%2Ftmd
> %2Fkino%2Fuploads%2Ftx_tmdmovie%2FDSIEMV_Poster_Startdatum_1400
> .jpg&md5sum=e4ef047fd3ce681d240d181cedd8d4fd">
> 
> If I call the scr-path in my Browser (reltive to mod1) I get this:
> 
> Fatal error: Namespace declaration statement has to be the very first
> statement in the script in /var/www/htdocs/typo3_src-
> 6.1.10/typo3/sysext/backend/Classes/View/ThumbnailView.php
> on line 2
> 
> 
> No clue what this means or if this helps.
> 
> #-(
> 
> Can you help in this task?
> 
> Thank you a lot,
> 
> Christian.
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list