Skip to content
New issue

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

How to change default dir cache folder? #185

Open
hebertlima opened this issue Oct 25, 2022 · 1 comment
Open

How to change default dir cache folder? #185

hebertlima opened this issue Oct 25, 2022 · 1 comment

Comments

@hebertlima
Copy link

hebertlima commented Oct 25, 2022

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

@juvenrui
Copy link

\Gregwar\Image\Image::open('assets/images/blabla.webp')->setCacheDir('assets/caches')->guess();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants