@umutgunel; Hocam fonksiyon dışında yazınca çalışıyor problem fonksiyon içinde kullanıldığı zaman görmemesi ($image = new ImageResize($text); )