jim1506's avatar

Thumbnail with Intervention - 5.3

The Laracast regarding images is invalid for 5.3 as the upload simply becomes: if ( isset($request->image) ) {$path = $request->file('image')->store('public/users');

This is fine and I store $path in a db. Now I want to also add a thumbnail from this so I added: Image::make($request->image)->fit(200)->save() but I get NotSupportedException in AbstractEncoder.php line 150: Encoding format (tmp) is not supported.

Help please!

0 likes
5 replies
Nicoeg's avatar

I think you need to do: Image::make($request->file('image'))->fit(200)->save()

jekinney's avatar

Just dealt with this yesterday.

What I ended up doing was put the original file in the public_path().

Fired an event to resize the image then move it where it needed to go.

Keep in mind the store method defaults to the storage folder. So I added some locations in the filesystem conf file.

jim1506's avatar

I have done this and am trying to read the original to put into a thumbs directory but I am getting a can't read error. I have started a different discussion on this problem

Please or to participate in this conversation.