Skip to content

How to change default dir cache folder? #185

@hebertlima

Description

@hebertlima
use Gregwar\Image\Image;
$img = new Image();
$img->setCacheDir('customDir')->create($width, $height)->fill($faker->hexcolor)->save($path, config('mime.service'));
# expected customDir/a/b/3....

keeps creating cache/images folder

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