Replies: 2 comments 2 replies
-
|
Same problem here with version Unsupported format `` error. on save(). It works fine on older version |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@mgsmus @kikky7 hey guys, I believe this error is caused because In v3 we rely on a file extension to determine the file format we will be using to store the image. In your case the solution would be to pass a file name with extension to the Image::loadFile($avatar)
->fit(Fit::Crop, 200, 200)
->save('avatar.png');Ofcourse you can use your own logic to generate a unique filname. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was using v2 in my Laravel project and I could manipulate images before saving them like this:
But now I have updated the package to v3 and modified my code as follows:
However, I am getting the following error:
For now, I have managed it with intervention/image-laravel like this:
However, I would prefer to do this with spatie/image. Am I missing something?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions