Level 50
Have a look at this solution. It works for me much better as it is able to adjust quality to the clients device:
https://laravel-news.com/integrating-cloudinary-to-your-backend-using-a-php-solution.
Hope it helps!
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I try upload image and resize to digital ocean spaces, but resize image not working and still same size, this is my code
$image = $request->file('image');
/**
* save resize image
*/
$thumb_uploads = env('CLOUD_POSTS_IMAGE_THUMB');
$image_resize = Image::make($image->getRealPath());
$image_resize->resize(50, 50, function ($constraint) {
$constraint->aspectRatio();
})->save(Storage::disk('spaces')->put($thumb_uploads .'/'.$image->hashName(), file_get_contents($image), 'public'));
Please help me, thanks
Please or to participate in this conversation.