dilfdo
283
3
Laravel

Create thumbnail from image

Posted 3 years ago by dilfdo

i want to create a thumbnial image and save it. i used "folklore/image": "0.3.* plugin , but im getting errors

pls advice

        $imagePath = $request->imagePath;
                $file = url('images/logo'). '/' . "edit.jpg";   /*Your Original Source Image */
                $pathToSave = url('images/logo1'). '/' ."edit1.jpg"; /*Your Destination Folder */

        
        Image::make($file,array(
            'width' => 300,
            'height' => 300,
            'grayscale' => true
        ))->save($pathToSave);

Please sign in or create an account to participate in this conversation.