We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using php 7.4, code is ok but not ok on php 8.0
$final_image = rand(1000,1000000).$img; $path = "assets/image/staff/".strtolower($final_image); $magicianObj = new imageLib($path); $magicianObj -> resizeImage(64, 64, 'crop'); $newPath = "assets/image/staf/".$id.".jpg"; $magicianObj -> saveImage($newPath,100);
error saveImage: This is not a resource..
The text was updated successfully, but these errors were encountered:
Hey, the neccessary change was already implemented and suggested as a pull reuqest (#22). If you take this version, it should work:
https://github.com/naftali100/php-image-magician
Sorry, something went wrong.
Search for all calls of is_resource() and change them to is_resource($this->imageResized) || $this->imageResized instanceof \GdImage
is_resource()
is_resource($this->imageResized) || $this->imageResized instanceof \GdImage
and it should work fine again.
No branches or pull requests
using php 7.4, code is ok but not ok on php 8.0
$final_image = rand(1000,1000000).$img;
$path = "assets/image/staff/".strtolower($final_image);
$magicianObj = new imageLib($path);
$magicianObj -> resizeImage(64, 64, 'crop');
$newPath = "assets/image/staf/".$id.".jpg";
$magicianObj -> saveImage($newPath,100);
error saveImage: This is not a resource..
The text was updated successfully, but these errors were encountered: