Sorry, but nothing matched your search terms. Please try again with some different keywords.
A Nicely Vue Component For Cropping Image
Aug 05, 2017
When developing a website.Crop image with specific height and width is an common requirement.
Today, I’m gonna show you a vue package for crop image and get base64 datas.
This package Image Croppie is not aim to upload image. It’s only get cropped base64 datas of image, after get the datas of an image we can do whatever with the datas.
Follow the Steps with Readme from github.
in function watch. after cropped the image the value will auto updated.
we can put the value somewhere else. for example, if this component is imported
from a form. then set datas to form input. After the form posted to server
save cropped image to server disk
Server code example (laravel):
props: height, width, circle, trans all optional
default value of them are
These props can be changed with you needed.