Created
February 15, 2022 08:41
-
-
Save acacha/bfde561838766cf2a23d888e5b0840d2 to your computer and use it in GitHub Desktop.
Exemple de codi Laravel amb Intervention Image per tal de modificar la mida d'una imatge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$imageContents = Storage::disk('public')->get($this->concert->poster_image_path); | |
$image = Image::make($imageContents); | |
$image->resize(600)->encode(); | |
Storage::disk('public')->put($this->concert->poster_image_path, (string) $image); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment