[TYPO3-german] Transparente PNG's
lixx
lixx at gmx.net
Wed Jan 13 14:31:52 CET 2010
Habe mir mal die Funktion aus "class.t3lib_stdgraphic.php" die das
install-tool durchläuft mal näher angesehen.
function imageMagickExec($input,$output,$params) {
if (!$this->NO_IMAGE_MAGICK) {
$cmd = t3lib_div::imageMagickCommand('convert', $params.'
'.$this->wrapFileName($input).' '.$this->wrapFileName($output));
$this->IM_commands[] = array($output,$cmd);
echo $input."\n";
echo $cmd."\n";
$ret = exec($cmd);
t3lib_div::fixPermissions($output); // Change the permissions of the file
if
($input=='/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.png[0]')exit;
return $ret;
}
}
Zuvor noch die Dateien aus dem Verzeichnis
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3temp/pics/ gelöscht.
Gibt folgendes aus ...
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.jpg[0]
/opt/local/bin/convert +profile '*' -geometry 170x136! -colorspace RGB
-quality 70
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.jpg[0]'
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3temp/pics/install_read_jpg.jpg'
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.gif[0]
/opt/local/bin/convert +profile '*' -geometry 170x136! -colorspace RGB
-quality 70
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.gif[0]'
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3temp/pics/install_read_gif.jpg'
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.png[0]
/opt/local/bin/convert +profile '*' -geometry 170x136! -colorspace RGB
-quality 70
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs/jesus.png[0]'
'/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3temp/pics/install_read_png.jpg'
... und erstellt das JPG und das GIF. Das PNG nicht.
Die selbe Zeile für das PNG im Terminal aber erstellt auch das PNG ... ???
Dateirechte ls -la
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3/sysext/install/imgs:
-rw-r--r--@ 1 user staff 14206 30 Nov 10:29 jesus.gif
-rw-r--r--@ 1 user staff 23854 30 Nov 10:29 jesus.png
Zielverzeichnis ls -la
/Applications/MAMP/htdocs/typo3_src-4.3.0/typo3temp/pics:
-rw-r--r-- 1 user staff 6238 13 Jan 14:19 install_read_gif.jpg
-rw-r--r-- 1 user staff 6372 13 Jan 14:19 install_read_jpg.jpg
Ganz großes ? !
More information about the TYPO3-german
mailing list