Releases: zhanziyang/vue-croppa
Releases · zhanziyang/vue-croppa
v0.3.4
v0.3.3
Change Log:
- Improvement: Now image size and position will not reset after rotation.
- Bug fixing: Initial image orientation NaN and wrong orientation when applying metadata.
v0.3.2
v0.3.1
Change Log:
-
Add "image placeholder" feature. Now you can not only use text placeholder but also use an image placeholder when croppa is empty. Find demo "Image Placeholder" in the demo page.
-
Add "draw" event which emitted on every view update (including init, move, zoom, rotate) when croppa is not empty. It is useful when you want to add attachment on image, for example watermark and stickers. Find demo "Attachments" in the demo page to see how it is done.
-
Add methods
getMetadata()
andapplyMetadata(metadata)
. Metadata describes current user manipulations (moving, zooming, rotating). You can save it somewhere, and later apply it to retrieve the previous state. To know more, find demo "Use Metadata" in the demo page. (#24)
v0.2.1
v0.2.0
Change Log:
- Local uploaded JPEG image with EXIF orientation is now shown correctly. Initial image should provide
data-exif-orientation
attribute to work. canvas-color
default value changed from'#e6e6e6'
to'transparent'
.- New methods to support rotate image:
rotate()
,flipX()
,flipY()
. - New prop
disabled-rotation
. - New prop
initial-size
to specify image's size when it is first loaded on croppa. It can be'cover'
,'contain'
or'natural'
. - New prop
initial-position
to specify image's position relative to croppa container when it is first loaded. It works similar to css's background-position. generateDataUrl()
method now accept a second argument to specify the compression rate.- New event
new-image
emitted when new valid image is set onto croppa. - Bug fixes.
v0.1.5
v0.1.4
v0.1.3
v0.1.1
Change Log
- Rename method
reset
toremove
.reset
will be deprecated in the future, because it does not describe what it does correctly. - Allow change default component name 'croppa' to anything you want, using the second argument in
Vue.use()
. - Add new prop
initial-image
, which receive an image url as its value and achieves the same goal as 'initial' slot. But it is useful when you want to set cross origin image as initial, which the slot method can't achieve. - Change
accept
prop's default value to'.jpg,.jpeg,.png,.gif,.bmp,.webp,.svg,.tiff'
, due to thataccpet='image/*'
is slow on webkit browsers. - Ignore non-file dragging.
- Expose croppa's component definition object. Now you can get it with
require('vue-croppa').component
to register manually.