Support the ongoing development of Laravel.io →
IOC Packages
Last updated 2 years ago.
0

If you want the encoded result, use ->encode('data-url') instead of ->save(). More info can be found here!

$image = Image::make(file_get_contents($file))->fit(200,200);
$user->avatar = $image->encode('data-url');
Last updated 9 years ago.
0

Thanks juukie14 but not this the problem

0

I found solution just add

$type

to

$imagedata =Image::make( file_get_contents($file))->fit(200,200)->save($oUser->avatar);

so become

$imagedata =Image::make( file_get_contents($file))->fit(200,200)->save($type,$oUser->avatar);

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.