gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
// mas fg-eket kell hivni az image tipusnak megfeleloen:
$create_fg = array("", "imagecreateFromGIF", "imagecreateFromJPEG",
"imagecreateFromPNG");
$save_fg = array("", "ImageGIF", "ImageJPEG", "ImagePNG");
$extensions = array("", "gif", "jpg", "png");
$size = getimagesize( $fname );
$width = $size[0];
$height = $size[1];
$type = $size[2]; // az image tipus, 1=>GIF, 2=>JPG, 3=>PNG
$supported=FALSE;
if( defined("IMG_GIF") && function_exists("ImageTypes"))//van GD
{
$checkBits = array(0, IMG_GIF, IMG_JPG, IMG_PNG);
$supported = isset($checkBits[$type]) && ((ImageTypes() & $checkBits[$type]));
}
In dem Schnipsel findet das garantiert nicht statt.
Ich vermute mal das die Thumbs entweder als GiF mit
256 Farben erstellt werden oder als JPEG/PNG aber ohne
TrueColor.
A: Open 'advertisement.php' in a text editor and search for two lines which look rougly like this:
$dst_im = ImageCreate ($newWidth, $newHeight);
imagecopy ($dst_im, $src_im, 0, 0, 0, 0,...
Rewrite them so that you replace 'ImageCreate' with 'ImageCreateTrueColor' and 'imagecopy' with 'imagecopyresampled'. This won't change the quality of the already uploaded picture, but will help at improving the pictures you upload afterwards.
Was heißt hier "trotzdem"? - Das war genau mein Tipp.Trotzdem Danke
Was heißt hier "trotzdem"? - Das war genau mein Tipp.
Und ein grep nach ImageCreate hätte das auf jeden Fall aufdecken müssen...
We use essential cookies to make this site work, and optional cookies to enhance your experience.