Skip to content

Releases: zhanziyang/vue-croppa

v0.3.4

12 Sep 14:02
Compare
Choose a tag to compare

Change Log:

  • Fix #26. Now if prevent-white-space is false (which is the default value), resizing container won't cause image reset.

v0.3.3

08 Sep 10:08
Compare
Choose a tag to compare

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

08 Sep 06:14
Compare
Choose a tag to compare

Change Log:

  • Add new event: initial-image-loaded. (#25)
  • Bug fixing: Rotation not working properly after applying metadata.

v0.3.1

07 Sep 17:28
Compare
Choose a tag to compare

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() and applyMetadata(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

13 Aug 14:58
Compare
Choose a tag to compare

Change Log:

  • Fix image getting removed after some prop changed. (#21)
  • Fix default bg color not changed completely in last release.

v0.2.0

08 Aug 12:26
Compare
Choose a tag to compare

Change Log:

  1. Local uploaded JPEG image with EXIF orientation is now shown correctly. Initial image should provide data-exif-orientation attribute to work.
  2. canvas-color default value changed from '#e6e6e6' to 'transparent'.
  3. New methods to support rotate image: rotate(), flipX(), flipY().
  4. New prop disabled-rotation.
  5. New prop initial-size to specify image's size when it is first loaded on croppa. It can be 'cover', 'contain' or 'natural'.
  6. 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.
  7. generateDataUrl() method now accept a second argument to specify the compression rate.
  8. New event new-image emitted when new valid image is set onto croppa.
  9. Bug fixes.

v0.1.5

02 Aug 09:41
Compare
Choose a tag to compare

Change Log:

  • initial-image now accepts both a url string and an Image object (#16).

v0.1.4

02 Aug 06:23
Compare
Choose a tag to compare

Change Log:

  • Bug fix: Fix CORS error when reading local files in webkit browsers on iOS (#14).

v0.1.3

19 Jul 04:00
Compare
Choose a tag to compare

Change Log

  • Fix image cannot be removed completely when using transparent background ( #7 ).

v0.1.1

17 Jul 14:34
Compare
Choose a tag to compare

Change Log

  • Rename method reset to remove. 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 that accpet='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.