[TYPO3-commerce] Images are still not displayed
Sebastian Böttger
sebastian.boettger at gmail.com
Tue Oct 23 10:49:45 CEST 2007
Hi,
I had now the same problem.
Very interesting: png images weren'ta problem, jpgs were.
I fixed it by solving my IMAGEMAGICK problems ;-). Maybe this is/was
your problem, too.
I just wanted to post it here to the list, because I read this issue
kind of often.
This is in fact not a commerce problem, it's a TYPO3 problem.
In class.tslib_content.php the
function cImage($file,$conf)
fetches an $info Array: $info = $this->getImgResource($file,$conf['file.']);
getImgResource will return an array with the keys orig*, but not the
needed keys 0-3.
Thats why
$info[3] = t3lib_div::png_to_gif_by_imagemagick($info[3]);
$GLOBALS['TSFE']->imagesOnPage[]=$info[3]; // This
array is used to collect the image-refs on the page...
fails.
I'm not sure, wether this should be related a bug, but an
if (empty($info[3])) $GLOBALS['TSFE']->imagesOnPage[]=$info[origFile];
would at least SHOW an image.
Best regards,
Sebastian Böttger
http://www.cross-content.com
Werbung/Advertisement:
Sie suchen eine günstige Versicherung?
http://www.versicherungsvergleich-auskunft.de/
Szabolcs Feczak schrieb:
> Hi all,
>
> I still have problems displaying images of the products ...
> now I ve got empty img tags like
>
> <img src="" width="" height="" border="0" alt="" title="" />
>
>
> for some reason ...
> I have traced back the problem till here:
>
> At revision 6294.
> lib/class.tx_commerce_pibase.php
> line 1010-1011
>
> this gives a correct value to tsconf:
> $TSconf['file'] = $this->imgFolder.$value;
>
> however this line
> $output .= $this->cObj->IMAGE($TSconf);
>
> returns the empty src="" .. this call goes into the Typo3 core, so I asume,
> there is nothing wrong there, but something to do with the content of the $TSconf,
>
> which is in my cause is this:
>
> array(3) {
> ["defaultImgConf."]=>
> array(1) {
> ["file."]=>
> array(1) {
> ["import."]=>
> array(1) {
> ["current"]=>
> string(1) "1"
> }
> }
> }
> ["file."]=>
> array(1) {
> ["maxW"]=>
> string(3) "150"
> }
> ["file"]=>
> string(41) "uploads/tx_commerce/bengal-bay-garnet.jpg"
> }
>
> any hints why does the output becomes
> <img src="" width="" height="" border="0" alt="" title="" />
>
> instead of something like this:
> <img src="uploads/tx_commerce/bengal-bay-garnet.jpg" ....
>
>
>
>
>
>
>
> Kind regards:
>
> Szabolcs Feczak "Sub"
> Symmetric Solutions
>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>
More information about the TYPO3-project-commerce
mailing list