also ich habe auch das prob mit dem gif und habe nun folgende dateien ändern müssen
1. classes/html2pdf.class.php
Code:
zeile 387 if ($ext == "jpg" or $ext == "png" or $ext == "gif") // erweitert AnonyMIZer um gif
2. includes/fpdf.php
suche nach zeile 923 und darunter folgendes einfügen
Code:
if ($ext == "jpg" or $ext == "png" or $ext == "gif") // erweitert AnonyMIZer um gif
3.
http://www.yamasoft.com/php-gif.zip datei runterladen
und gif.php in includes/ hochladen
4.includes/fpdf.php
zeile 1523 folgendes einfügen
Code:
function _parsegif($file)
{
//Function by Jérôme Fenal
require_once 'gif.php'; //GIF class in pure PHP from Yamasoft (http://www.yamasoft.com/php-gif.zip)
$h=0;
$w=0;
$gif=new CGIF();
if (!$gif->loadFile($file, 0))
$this->Error("GIF parser: unable to open file $file");
if($gif->m_img->m_gih->m_bLocalClr) {
$nColors = $gif->m_img->m_gih->m_nTableSize;
$pal = $gif->m_img->m_gih->m_colorTable->toString();
if($bgColor != -1) {
$bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor);
}
$colspace='Indexed';
} elseif($gif->m_gfh->m_bGlobalClr) {
$nColors = $gif->m_gfh->m_nTableSize;
$pal = $gif->m_gfh->m_colorTable->toString();
if($bgColor != -1) {
$bgColor = $gif->m_gfh->m_colorTable->colorIndex($bgColor);
}
$colspace='Indexed';
} else {
$nColors = 0;
$bgColor = -1;
$colspace='DeviceGray';
$pal='';
}
$trns='';
if($gif->m_img->m_bTrans && ($nColors > 0)) {
$trns=array($gif->m_img->m_nTrans);
}
$data=$gif->m_img->m_data;
$w=$gif->m_gfh->m_nWidth;
$h=$gif->m_gfh->m_nHeight;
if($colspace=='Indexed' and empty($pal))
$this->Error('Missing palette in '.$file);
if ($this->compress) {
$data=gzcompress($data);
return array( 'w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>8, 'f'=>'FlateDecode', 'pal'=>$pal, 'trns'=>$trns, 'data'=>$data);
} else {
return array( 'w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>8, 'pal'=>$pal, 'trns'=>$trns, 'data'=>$data);
}
} dann sollte es gehen
so aber irgendwo ist was falsch ?
denke im html2pdf.php wer kennt sich da aus ?