# vue2-simple-image-zoomer

> A Vue 2 simple image zoomer plugin

Latest version **0.1.15** (published 2023-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue2-simple-image-zoomer
pnpm add vue2-simple-image-zoomer
yarn add vue2-simple-image-zoomer
bun add vue2-simple-image-zoomer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.15 |
| Published | 2023-06-05 |
| First published | 2023-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 88.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Fazle Rabbi |
| Maintainers | irabbi360 |
| Keywords | vue, vue product zoom, image zoom, vuejs image zoom |

## Links

- npm: https://www.npmjs.com/package/vue2-simple-image-zoomer
- npm.io page: https://npm.io/package/vue2-simple-image-zoomer

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.1.15 (latest) — 2023-06-05
- 0.1.14 — 2023-06-04
- 0.1.13 — 2023-06-04
- 0.1.12 — 2023-06-04
- 0.1.11 — 2023-06-04
- 0.1.10 — 2023-06-04

## README

# vue2-simple-image-zoomer

Simple Image Zoomer component of Vue.js

## Features

- Compatible with native `real time` behavior
- Touch device support
## Requirements

Vue >= 2.0
# Installation

## NPM
```
npm install --save vue2-simple-image-zoomer
```
## Yarn
```
yarn add vue2-simple-image-zoomer
```

## Usage

### Basic Usage
Just import vue2-simple-image-zoomer component and use it in your components. The props are String and object & it must required, so you can use `imagePath` and `zoomerOptions` as a object.

```html
<template>
  <simple-image-zoomer
    :imagePath="imageUrl"
    :zoomer-options="zoomerOptions"
  >
  </simple-image-zoomer>
</template>

<script>
import SimpleImageZoomer from 'vue2-simple-image-zoomer'
// you probably need to import built-in style
import 'vue2-simple-image-zoomer/dist/vue2-simple-image-zoomer.css'

export default {
  data () {
    return {
      imageUrl: 'https://example.com/product_image.jpg',
      zoomerOptions: {
        zoomFactor: 3,
      }
    }
  },
  components: {
      SimpleImageZoomer
  }
}
</script>

<style>

</style>
```
### Available props:


### Install Globally
```
Vue.use(Vue2SimpleImageZoomer)
```

### Use Components Locally
```
import SimpleImageZoomer from 'vue2-simple-image-zoomer'
```

### Nuxt.js Usage

create a plugin file `vue2-simple-image-zoomer.js` inside `/plugins` dir

```js
import Vue from 'vue'
import SimpleImageZoomer from 'vue2-simple-image-zoomer'
// css
import 'vue2-simple-image-zoomer/dist/vue2-simple-image-zoomer.css'

Vue.Use(SimpleImageZoomer)
```

import a plugin in nuxt.config.js with disable ssr mode

```js
plugins: [{ src: '~/plugins/vue2-simple-image-zoomer', ssr: false }]
```

## License

MIT

---
_Source: https://npm.io/package/vue2-simple-image-zoomer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
