Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Image::save() occurs an error.
  • $data = Upload::get_files(0);
    $img = Image::load($data['file'], false, $data['extension']);
    $img->resize(500);
    $img->save("foo.jpg");

    This code works correctly on 1.4 but 1.5.3 has an error occur. Like below.

    RuntimeException [ Error ]: The library does not support this filetype for /var/tmp/phpiCBawq.
    COREPATH/classes/image/driver.php @ line 142

    But there is "foo.jpg". Why?
  • I found an error!

    line 857 in COREPATH/classes/image/driver.php,
    function reload().
    This function was changed as below:

    1.4:
    $this->load($this->image_fullpath, false, $this->image_extension);
    1.5.3:
    $this->load($this->image_fullpath);

    I rewrote it like 1.4 then it works correctly.
  • HarroHarro
    Accepted Answer
    If you found an error, please test it with the latest develop version (1.6/develop at the moment). If it is still an error, please create an issue for it at http://github.com/fuel/core/issues
  • Is this solved? I get the same error
  • This bug isn't yet fixed. I shall open an issue
  • I don't think I ever saw a created issue, so I assume it was. But if you have the same issue, sounds like it isn't.

    Please create a ticket for it, which your use case, and some code to reproduce the error.

Howdy, Stranger!

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

In this Discussion