We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

php functions on phalcon library cant use

Hi all,

i add PhpImageWorkshop as library

use PHPImageWorkshop\ImageWorkshop;

on imageWorkShop file

case 'jpeg': $image = imageCreateFromJPEG($path); break;

            case 'gif':
                $image = imageCreateFromGIF($path);
            break;

            case 'png':
                $image = imageCreateFromPNG($path);
            break;

output:

call to undefined function PhpImageWorkshop/imageCreateFromJPEG()...

as u understand , its searching imageCreateFromJPEG in library , but its php's function . How can i solve it ?

Thanks

Hi,

you have to activate GD in your php version.



39.3k

its already activated, i understand that , smt my files uploaded smt not uploaded. On not uploaded files ater 5-10 refresh its uploaded to ?

why it can be?

$new_name = $helper->setImageName($file);

                 //resmi taşıyorum klasöre
             $file->moveTo(USER_AVATAR_UPLOAD . $new_name);