Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Image::save() occurs an error.
mantinia
March 2013
$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?
mantinia
March 2013
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.
Harro
March 2013
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
Rob_bar
December 2013
Is this solved? I get the same error
Rob_bar
December 2013
This bug isn't yet fixed. I shall open an issue
Harro
December 2013
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.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
December 2013
mantinia
March 2013
Rob_bar
December 2013