Просмотр поста

.
Folour
Think different
# MAH9IK (05.04.2015 / 15:35)
Вот что нужно убрать
Попробуй заменить метод createThumb у класса classes/classImageEdit.php
на этот (я не проверял, но должно работать. Прозрачность только для png, не забывай)
////
    private function createThumb($imageSize){
        list($srcW, $srcH) = array($this->imageproperties[0], $this->imageproperties[1]);
        if($this->size || (($srcW >$imageSize || $srcH > $imageSize) && $imageSize != 0)) {
            if(!$this->size) {
                $reduction = $this->calculateReduction($imageSize);
                list($this->weight, $this->height) = array($srcW/$reduction, $srcH/$reduction);
            }

            $copy = imagecreatetruecolor($this->weight, $this->height);
            imageFill($copy, 0, 0, imageColorAllocateAlpha($copy, 0, 0, 0, 127));
            imageSaveAlpha($copy, true);

            imagecopyresampled($copy,$this->image,0,0,0,0,$this->weight, $this->height, $srcW, $srcH);
            imagedestroy($this->image);
            $this->image = $copy;
        } else list($this->weight, $this->height) = array($srcW, $srcH);
    }