Guten Tag
In der Dateiverwaltung meiner Contenido-Installation (4.4.2) werden alle Vorschaubilder lediglich per IMG-Attribute HEIGHT und WIDTH im Browser verkleinert. Das hat zur Folge, dass es jedesmal relativ lange dauert, bis die Seite angezeigt wird.
Eigentlich sollte doch eine 'Thumbnail-Funktionalität' vorhanden sein. Ich habe sowohl ImageMagick als auch GD.
Wie bring ich das zu laufen?
Dateiverwaltung: Preview-Image
bei problemen des aktuellen snapshot sieh dir folgendes an :
http://contenido.de/forum/viewtopic.php?t=3043
http://contenido.de/forum/viewtopic.php?t=3043
Hm, ich habe das jetzt folgendermassen hingekriegt:
functions.upl.php ab Zeile 95 sieht jetzt so aus:
functions.upl.php ab Zeile 95 sieht jetzt so aus:
Code: Alles auswählen
if ($makethumb) {
$image = call_user_func("imagecreatefrom".$types[$imagedata[2]], $image);
$thumb = imagecreatetruecolor ($x, $y);
imagecopyresampled ($thumb, $image, 0, 0, 0, 0, $x, $y, $imagedata[0], $imagedata[1]);
call_user_func("image".$types[$imagedata[2]], $thumb, $cachedir.$thumbfile);
imagedestroy ($image);
imagedestroy ($thumb);
$filepath = $cfgClient[$client]['upl']['htmlpath'].$path.$con_cfg['PathFrontendTmp'].$thumbfile;
} else {
if ($iscached) {
// $filepath = $cfgClient[$client]['upl']['htmlpath'].$path.$con_cfg['PathFrontendTmp'].$thumbfile;
// $filepath = $cfgClient[$client]['upl']['htmlpath'].$path.$thumbfile;
$filepath = '/cms/cache/'.$thumbfile;
} else {
$filepath = $cfgClient[$client]['upl']['htmlpath'].$path.$thumbfile;
}
}