vue-image-diff
vue component for multiple image comparison.
currently supported only 8bit jpg and png format.
Web-App: https://github.com/whwnsdlr1/image-diff
jsfiddle1: https://jsfiddle.net/whwnsdlr1/xgz21e95/
jsfiddle2: https://jsfiddle.net/whwnsdlr1/84bkq2hy/
Usage
how to include component
in Vue Project
in html
arguments structure
data is array of object.
options is object
optionsToolBar is object
functions
- open Control panel: openControlPanel()
Control
- mouse & touch drag - panning
- mouse wheel & pinch to zoom - zoom in / out
- mouse doubleclick - change reference image for diff
Browser support - (tested)
- Google Chrome 77+
- Google Chrome 77+ on Android 9+
- Mozilla FireFox 68+
Project setup
Build
build project as below
git clone https://github.com/whwnsdlr1/vue-image-diff
cd vue-image-diff
yarn run build