Image icon indicating copy to clipboard operation
Image copied to clipboard

How to change default dir cache folder?

Open hebertlima opened this issue 2 years ago • 1 comments

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

hebertlima avatar Oct 25 '22 09:10 hebertlima

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

juvenrui avatar Dec 26 '23 05:12 juvenrui