Update functions.artikel.inc.php

EDIT:

                $NewImageRef = imagecreatetruecolor($NewImageWidth, $NewImageHeight);
                if($ImageType == 'jpg'){
                        $NewImage = imagecreatefromjpeg($Image);
                }elseif($ImageType == 'gif'){
                        $NewImage = imagecreatefromgif($Image);
                }elseif($ImageType == 'png'){
                        $NewImage = imagecreatefrompng($Image);
                }
                imagecopyresampled($NewImageRef, $NewImage, 0, 0, 0, 0, $NewImageWidth, $NewImageHeight, $ImageSizeArray[0], $ImageSizeArray[1]);


                if($ImageType == 'jpg'){
                        imagejpeg($NewImageRef, DATEIPFAD . "images/dbimages/" . $NewImageName, 85);
                }elseif($ImageType == 'gif'){
                        imagegif($NewImageRef, DATEIPFAD . "images/dbimages/" . $NewImageName, 85);
                }
                elseif($ImageType == 'png'){
                        imagepng($NewImageRef, DATEIPFAD . "images/dbimages/" . $NewImageName);
                }