FrostNite's avatar

How to get animated gif image when uploading a gif image?

Currently my uploaded gif image keep getting converted to a static picture and my display image is static and not animated. How do i upload a gif image that retain it animation too? I am using intervention btw.

$image = Input::file('image');
        if($image)
        {
        $filename  = time() . '.' . $image->getClientOriginalName();
        $path = public_path('img/products/' . $filename);
        Image::make($image->getRealPath())->save($path);
        $banner->image = 'img/products/'.$filename;
        }
        $banner->save();
0 likes
4 replies
Snapey's avatar

why do you need to use Intervention? just upload it as a file and it won't be modified.

Please or to participate in this conversation.