[Typo3] Problems with png

Kraft Bernhard kraftb at gmx.net
Tue Feb 22 17:49:08 CET 2005


Daniel Doesburg wrote:
> Look at: http://aexcyclus.doesburg.biz/index.php?id=11

The image shown here is converted to greyscale ... and is completly transparent ...

If you want to debug where the problem lies you could edit
t3lib/class.t3lib_stdgraphic.php

And modifiy the function "imageMagickExec" (line 2372)
so that it looks like this:

    function imageMagickExec($input,$output,$params)   {
       echo "Input: '$input'<br>\n";
       echo "Output: '$output'<br>\n";
       echo "Params: '$params'<br><br>\n";
       if (!$this->NO_IMAGE_MAGICK)  {
          $cmd = $this->imageMagickPath.'convert '.$params.' '.$this->wrapFileName($input).' '.$this->wrapFileName($output);
          $this->IM_commands[] = Array ($output,$cmd);
          return exec($cmd);
       }
    }

Just add the 3 "echo" Statements at the beginning of the function ....

Then clear your cache and delete the generated images (the one on page 11) and visit
page 11 again ...

On the top of the page the debug output should show when the image was converted to grayscale ...

If you find a part "-gray" (-grey?) in on of the params string you know where your image gets
converted to grayscale ...


Pherhaps the problem is that you uploaded your images as grayscale and GDLib (or Typo3?)
can't handle them properly ...


greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list