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

Usage with Cloud filesystem, i.e. Amazon AWS S3 #431

Closed
simplenotezy opened this issue Sep 29, 2015 · 1 comment
Closed

Usage with Cloud filesystem, i.e. Amazon AWS S3 #431

simplenotezy opened this issue Sep 29, 2015 · 1 comment

Comments

@simplenotezy
Copy link

How can I setup image intervention to upload images to my cloud storage setup in L5 filesystem config?

Most applications running on DigitalOcean will need some additional cloud if they are hosting images, so we're talking about a relatively large market (laravel applications hosting images, running on i.e. DO).

@olivervogel
Copy link
Member

You take the result of encode() and save it to any storage you like.

$data = (string) Image::make('public/foo.png')->encode('jpg', 75);
Storage::put('file.jpg', $data);

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