jofftiquez / vue-croppie

Vue wrapper for croppie
https://jofftiquez.github.io/vue-croppie/
MIT License
261 stars 42 forks source link

how can we use image upload ? i need to choose image file and do crop on that particular image. #40

Closed sureshp83 closed 6 years ago

sureshp83 commented 6 years ago

Hi, I need to use cropping on my selected images, not default image? how can do? please tell me a step.

jofftiquez commented 6 years ago

Hi @sureshp83

First create an input with type file this should emit a file data of the image. Then add the file to vue-croppie using the .bind() method.

notedboi commented 6 years ago

@sureshp83 Or use let url = window.URL.createObjectURL(fileList[0]) to get url of local file, pass the url either to .bind() or to .filesChange()

jofftiquez commented 6 years ago

Closing now. Kindly re-open if you have more concern.

guumaster commented 6 years ago

I've been playing with vue-croppie and made an app to upload / modify / download. You can check it here: https://rolodromo.github.io/playground-token-maker/

jofftiquez commented 6 years ago

@guumaster that's a nice project. Thanks for using vue-croppie :)