php, imageresizing

2 Cevap php
function rezizecode()
     {   
     $config['image_library'] = 'gd2';
     $config['source_image']    = 'system/application/images/manu.jpg';
     $config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['width']= 25;
    $config['height']= 30;
    $this->load->library('image_lib', $config); 
    $this->image_lib->resize();
     } 

Bu kod resim boyutlandırma kullanarak çalışma değil mi?

2 Cevap

Nobody can answer this question.
this is only smallest part of the code, and it can be not the code at all.

Soruyu cevaplamak için bir programcı hata ayıklamak için öğrenmek gerekir "neden benim kod çalışmıyor", ve bir kullanıcı bir programcı kiralamak gerekir.

IBM ayıklama başlatmak için iyi bir makale var: http://www.ibm.com/developerworks/library/os-debug/

Tüm hataları açın ve bazı hata ayıklamaya çalışın.

what environment you are working in, What I suspect is the path for the image might incorrect

 $config['source_image']    = 'system/application/images/manu.jpg';

üzerinde tam yolunu koymak deneyin.

 $config['source_image']    = '[path]/system/application/images/manu.jpg';

bunu test.