Skip to content

PHP 8 compatibility #23

@wanmad

Description

@wanmad

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions