Comments (6)
from vue-croppa.
version 1.1.4 comes with a new prop: replace-drop
<croppa replace-drop></croppa>
turning on replace-drop
mode will result in current image getting replaced by the new one on drag and drop.
- type:
boolean
- default:
false
(By default you need to remove the current image to drop a new one)
from vue-croppa.
@zhanziyang awesome, thanks for quick feature update.
from vue-croppa.
@zhanziyang I tried the 1.1.4. and added replace-drop
but you have a bug - the drag and drop with new attribute won't work over the initial image like this:
<croppa
v-model="myCroppa"
replace-drop>
<img src="~/assets/img/profiles/1.png" slot="initial">
</croppa>
With a setup like this you need to first remove the initial image and then drag and drop will work. Can you fix this in next release?
from vue-croppa.
@PrimozRome I can't reproduce your issue. I made a demo and it works fine here. Take a look. https://codepen.io/zhanziyang/pen/MONOeP
from vue-croppa.
@zhanziyang thanks. I am not using your CSS and looks like I have problem with my CSS... Thanks for your effort.
from vue-croppa.
Related Issues (20)
- Error "The operation couldn't be completed. (WebkitBlobResource error 1.)" on iOs.
- Black corners when use plugin
- Slow for large images on Android HOT 1
- File type mismatch event not passed when selecting the same wrong file twice (Chrome)
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- [Migration] Are there any plan to support Vue3? HOT 5
- How to insert a pin image after a mouse click?
- Could not find a declaration file for module
- Image Height and Canvas Size Problem
- Crop like Instagram
- Crop like Instagramm
- 可以支持vue3.0? HOT 1
- zoomIn() and zoomOut() make image smaller
- Different result image quality on different screens (blurry images) HOT 1
- add setter for outputWidth and outputHeight or ability to control this.myCroppa.width and this.myCroppa.height directly before calling this.generateDataUrl to control output size
- Image freezes after moving it a dozen times
- Image isn't being cropped in my case HOT 1
- Scale is null after uploading image with same dimensions as previous image
- Is there a way to fire an event if user zooms in or out? HOT 1
- Uploading PNG Logo Image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-croppa.