Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
question about Image Class / Image file does not exist.
  • One problem: Fuel\Core\Fuel_Exception [ Error ]: Image file does not exist. I think problem in config:
    But how I should write directory 'temp' in config file? My config file: http://pastecode.com/2am
    in controller: Image::load('hello.jpg'); Windows 7 ultimate 32 bit.
    Apache 2.2
    php 5.3
    Imagemagick ImageMagick-6.7.2-1-Q16-windows-dll
    php_imagick_ts.dll
  • Your controller seems ok for unix environment. Try this:
    Image::load(APPPATH.'temp'.DS.'hello.jpg')
                ->config('bgcolor', '#f00')
                ->resize(100, 100, true, true)
                ->save(APPPATH.'temp'.DS.'full.jpg');
    
  • Error code 255 means it couldn't find the file trying to be executed, which is the imagemagick executable. Edit: Not sure why it isn't working, are the files in the right places?
  • where are you putting hello.jpg ? try putting ie it in the temp folder, then load it as APPPATH.'temp/hello.jpg'
  • Jaroslav Petrusevic wrote on Sunday 4th of September 2011:
    where are you putting hello.jpg ? try putting ie it in the temp folder, then load it as APPPATH.'temp/hello.jpg'

    One problem solved. :)
    // in controller
    Image::load(APPPATH.'/temp/hello.jpg')
                ->config('bgcolor', '#f00')
                ->resize(100, 100, true, true)
                ->save(APPPATH.'/temp/full.jpg');
    
    

    And now : Fuel\Core\Fuel_Exception [ Error ]: imagemagick failed to edit the image. Returned with 255. Command: C:\ImageMagick\identify.exe -format "%[fx:w] %[fx:h]" "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\fuel\app\/temp/fuelimage_0cb71df9166fb8bcfdcf22.png"[0] huglester - could you show your configs and small part of controller?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion