v2.5.2
Giriş yap

Verot.net | Görsel Küçülmüyor?

ilkertuncer
332 defa görüntülendi

Selamlar. Verot.net in güncellenmiş sınıfı https://github.com/verot/class.upload.php ile yeni bir görsel küçültme işlemi yazdım.
Resim klasöre gidiyor fakat küçülmüyor. Nerede yanlış yapıyorum?

require_once 'config.php'; // dosyamızı dahil ediyoruz
require_once 'class.upload.php'; //class dosyamızı dahil ediyoruz
        $handle = new \Verot\Upload\Upload($_FILES['image']);
        if ($handle->uploaded) {
            $handle->process('uploads/resim');
            $handle->image_ratio_crop = false;
            $handle->image_resize = true;
            $handle->image_x = 271;
            $handle->image_y = 150;
            $handle->process('uploads/kucuk');
            if ($handle->processed) {
                $e = "" . $handle->file_dst_name . "";
            }
        }
Cevap yaz
Cevaplar (3)
ilkertuncer
670 gün önce

Merhaba @istek61. GD'mi açtım fakat işe yearamadı! https://prnt.sc/4zeDUinKfr_H
Sayfa içinde herhangibir hata da vermiyor

istek61
671 gün önce

Requirements
Most of the image operations require GD. GD2 is greatly recommended

Version 1.x supports PHP 4, 5 and 7, but is not namespaced. Use it if you need support for PHP <5.3

Version 2.x supports PHP 5.3+, PHP 7 and PHP 8.

GD ve GD2 kütüphaneniz açık mı?

istek61
671 gün önce

error log var mı ? belki bir kütüphane istiyordur